使用的.htaccess重定向URL在网址重定向、网址、htaccess、URL

2023-09-02 09:51:03 作者:累要自己扛

由于我试图重定向一次完整网址

As i am trying to redirect one complete URL

http://www.domain-name.com/download/?page=download

要这个网址

http://www.domain-name.com/download/show

对于这个工作我已经加入此code

For this to work I have added this code

rewriterule http://www.domain.com/download/?page=download(.*)$ http://www.domain.com/download/show$1 [r=301,nc]

不过,这不是工作,而是说我请求的URL写着禁止。

But this is not working and instead it says the URL I am requesting says "Forbidden".

任何一个可以请给这个任何解决方案。

Can any one please give any solution for this.

推荐答案

重定向URL在URL利用htaccess文件:

Redirect One URL to Another URL by Using htaccess file:

Redirect 301 /en/php/project.html http://www.example.org/newpage.html