问题
Continued from my previous thread: GET, if, elseif
I'm using a CMS but it has URL rewrite somewhere through the files. How would I go around getting the $_GET to work without the .php extension?
Options +MultiViews
That still won't let me visit /something.php it says not found. (Would it be because the pages aren't in /, they are in another directory using a template system?
回答1:
If you are using apache HTTP server, then you should consider to use multiview option. No need to use RewriteRule there. In the htaccess file, add :
Options +MultiViews
来源:https://stackoverflow.com/questions/9762791/get-url-rewrite