网络营销电子商务研究中心

网络营销电子商务研究中心 (https://www.0058.net/index.php)
-   服务器环境搭建 (https://www.0058.net/forumdisplay.php?f=5)
-   -   Point parked domain to subdirectory (https://www.0058.net/showthread.php?t=2728)

yahoo 2007-08-18 09:06 AM

Point parked domain to subdirectory
 
I bought another domain name for a site and I want it to go directly to a subdirectory.

For example, if:
mainurl.com goes to mainurl.com
i want newurl.com to go to mainurl.com/new/

yahoo 2007-08-18 09:06 AM

Quote:

RewriteCond %{HTTP_HOST} www\.yournewdomain\.com
RewriteRule (.*) http://www.yourolddomain.com/subdir [R=301,L]

that should work =)

rewrite rules are good for this type of stuff


All times are GMT +8. The time now is 03:44 AM.

Powered by vBulletin Version 3.8.7
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.