开发者

How to make this simple 301 redirect in .htaccess?

I've looked to some already asked questions, but wasn't able to solve it.

How do I make a simple 301 redirect

FROM: www.mydomain.cz/something/somethingelse/

TO www.mydomain.cz/sometext

I've came up with th开发者_开发知识库is, but it didn't work and I don't really know the difference between RedirectMatch and RewriteRule, could anyone tell? Thanks.

RewriteEngine on
RewriteBase /
RedirectMatch 301 something/somethingelse(/)?$ sometext

I get an "Internal Server Error" when using this.


nice easy one..

Redirect 301 /oldfolder/oldfile.html http://www.domain.com/Content/newfile.html

http://www.techieshelp.com/how-to-redirect-a-web-page/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜