我想重写一个简单的URL,但不会产生谷歌的错误重写规则错误
此代码:
RewriteEngine on
RewriteRule lieu/([0-9]+).* index.php?com=location&lID=$1 [L]
RewriteRule evenement/([0-9]+).* index.php?eID=$1 [L]
,但我想加上R = 301标志SEO
当我添加[R = 301,L]:
The requested URL /var/www/mysite/index.php was not found on this server.
我知道R = 301标志必须以http使用://
但是当我尝试的网址并非rewritting
当然这个目标URL不是有效的URL。这是一个服务器路径(目录路径)。 – Madbreaks
@Madbreaks确定,但你有什么建议? – bklups
请向我们展示您的完整重写块,其中包括301 – Madbreaks