我必须用.htaccess更改url
.htaccess存储在链接文件夹中。
我的.htaccess文件是
Options -Multiviews
Options +FollowSymlinks
RewriteEngine on
RewriteRule ^([1-9a-z]*)$ index.php\?u=$1 [L]
当我打开这个的时候
'http://example.com/link/index.php?u=3ujkzf‘
url它起作用了。
但是当我打开的时候
'http://example.com/link/3ujkzf‘短链接
我得到了默认的godaddy托管错误页面。
请帮帮我..
感谢您的阅读..
发布于 2012-07-17 06:36:30
如果您的项目位于link
文件夹中,则需要包含以下内容:
RewriteRule ^link/([1-9a-z]*)$ /link/index.php?u=$1 [L]
顺便说一句,您不需要转义重写规则第二部分中的问号
发布于 2012-07-17 06:38:55
尝试添加RewriteBase /
在RewiteEngine On下方
https://stackoverflow.com/questions/11513572
复制相似问题