当前位置: 动力学知识库 > 问答 > 编程问答 >

.htaccess - redirect using htaccess

问题描述:

I have this location

http://somesite.com/pot_system.shtml

and i want to redirect to

http://somesite.com/build_me_today

I want to do this via htaccess is that possible

I used

Redirect /pot_system.shtml http://somesite.com/build_me_today

网友答案:

Simplest way:

Redirect /pot_system.shtml /build_me_today
网友答案:

Using a 301 redirect:

Redirect 301 /pot_system.shtml /build_me_today
网友答案:

@Matt:

Options +FollowSymLinks
RewriteEngine on
RewriteRule /pot_system.shtml http://somesite.com/build_me_today [R=301,L]
分享给朋友:
您可能感兴趣的文章:
随机阅读: