相关疑难解决方法(0)

重写Apache没有查找URL的规则?

使用从我得到的回答rcs20在我以前的帖子,当我这个条目添加到我的.htaccess文件我看到错误404未找到:

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^member\-([0-9]+)\-([^/])\.htm(l)?$ view_profile.php?id=$1 [NC,L]
Run Code Online (Sandbox Code Playgroud)

我传递的URL是:

mysite/member-8222-jane.html
Run Code Online (Sandbox Code Playgroud)

不知道为什么会这样.我的旧重写规则工作正常:

RewriteRule view_profile=(.*)$ view_profile.php?id=$1 
Run Code Online (Sandbox Code Playgroud)

apache .htaccess seo url-rewriting

3
推荐指数
1
解决办法
202
查看次数

标签 统计

.htaccess ×1

apache ×1

seo ×1

url-rewriting ×1