Link to home
Start Free TrialLog in
Avatar of jimgordon
jimgordon

asked on

extensionless url on apache - 404 error

Hi, I was testing a website in my local server and I was able to transform url such as: /index.php or /logout.php into /index and /logout (without extension). Now I moved my site online and I have a 404 for those pages.

This is my .htaccess:

<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^login$ login.php [L]
RewriteRule ^logout$ logout.php [L]
RewriteRule ^home$ index.php [L]
ASKER CERTIFIED SOLUTION
Avatar of caterham_www
caterham_www
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial