0
这听起来像是一个非常简单的任务重定向,我想一个url重定向,如:mod_rewrite对旧服务器到新的
https://oldserver.com/signup/name
到 https://newserver.com/sign_up/?alias=name
继mod_rewrite的文档(here)对于这种情况失败。
我.htaccess
到目前为止是:
RewriteEngine On
RewriteRule ^/signup/(.+) https://newsite.com/sign_up/?alias=$1 [R,L]
# Catch-all
RewriteRule ^(.*)$ https://newsite.com/$1 [R=301,L]
可有人告诉我可能是什么问题?
编辑
添加
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
之前,首先重写规则仍然导致404