I have the following .htaccess code that working in localhost but not working in server
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
What is the solution?
In my code , I am using a function called run()
(which is a user defined function) for checking a particular condition. When disabling that function everything working fine. Then I changed that function name to another name that time also works. I don't know why run()
not working in server. But now my problem solved
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.