使用的.htaccess重定向URL在网址 [英] Redirect one url to another url using .htaccess

查看:159
本文介绍了使用的.htaccess重定向URL在网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

这篇关于使用的.htaccess重定向URL在网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆