Re: Re: Remove index.php from url

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2008-10-11 at 11:02 -0500, Shawn McKenzie wrote:
> Shawn McKenzie wrote:
> > OOzy Pal wrote:
> >> Hello,
> >>
> >> I expect that this question been beaten to death. I googled for many hours
> >> and all what I found is related to one CMS or another. I want to do is to
> >> make a very very very simple index.php that when is it called it
> >> automatically detect the page and load it. For example, when I call
> >>
> >> www.xyz.com/index.php/company, it calls for company.html. I have made that
> >> index.php. Now I need to remove this index.php from the url.
> >>
> >> Can you help?
> >>
> > mod_rewite if you use Apache.  In the simplest form (not tested):
> > 
> > .htaccess
> > 
> > RewriteRule ^index\.php\/(.*)$ $1 [L,NC,NS]
> > 
> > HTH
> > -Shawn
> Scrub that.  The rule is backwards.  But mod_rewrite is the answer.
> 
> -Shawn
> 
Incidentally, does anyone know how this would be achieved on IIS? We've
got a site at work that's running off a CMS I knocked up, but they'd
prefer the URLs to look proper, without the query string.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux