GET, URL-Rewrite

夙愿已清 提交于 2020-01-05 12:12:32

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!