我想重写我的URL:
http://www.example.com/mypage.php?unm=hr
重写后:
http://www.example.com/hr
htaccess文件:
RewriteEngine On
RewriteRule ^([^/]*)$ /myuser.php?url=$1 [L]
但它引发了一个错误:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
Please contact the server administrator at postmaster@localhost to inform them of the time this error occurred, and the actions you performed just before this error.
More information about this error may be available in the server error log.
Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
Apache/2.4.7 (Win32) OpenSSL/1.0.1e PHP/5.5.9 Server at localhost Port 80
2条答案
按热度按时间hmmo2u0o1#
你必须指定所有的JavaScript以及所有的css文件有fullpath一样,我们一般访问文件把一样
现在你可以像这样使用。
vlju58qv2#
请确保以下事项:
RewriteEngine On