开发者

Rewrite a single URL using ModRewrite, with domain pointers

开发者 https://www.devze.com 2023-02-19 08:10 出处:网络
My .htaccess is at root level, and serves a number of hosted domains (I\'m using domain pointers). I want开发者_运维百科 to redirect a single URL on one of those domains:

My .htaccess is at root level, and serves a number of hosted domains (I'm using domain pointers).

I want开发者_运维百科 to redirect a single URL on one of those domains:

http://www.pointerdomain.com/first.html to http://www.pointerdomain.com/single.html

But I can't see any documentation on how to do that...


Your question seems vague, but would this work for you?

RewriteCond %{HTTP_HOST} www\.pointerdomain\.com
RewriteRule ^first.html$ /single.html
0

精彩评论

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

关注公众号