I have this problem, I'm running locally an application (PHP 5.3.5) and it works, but when I put it online it doesn't (I have PHP 5.3.6).
This is my '.htaccess'
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
As you can see I only added this line RewriteCond %{REQUEST_FILENAME} !-d
I also tried with the original .htaccess but didn't work.
Any ideas?
I just try with Wordpress default .htaccess
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
And it works
This Worked for me! I know A lot of people are struggling with this. But i hope this works for you guys too. Good Luck Also don't forget to add this in your virtual host file...
AllowOverride All
Rewrite rules
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+)$ /$1.php [L,QSA]
Thats works but when you send paramters. it just goes to 404 error. Anyone know how to solve that issue.?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.