Re: Remove index.php from url

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

 



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

-- 
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