Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

htaccess help divert subdomain file to domain

Status
Not open for further replies.

Zeroanarchy

Technical User
Jun 11, 2001
630
AU
I hope this is the right forum, I am having real problems trying to divert one page to another in the htacess file. I am unable to make the divert happen on the page as it is part of a forum.

I have tried a few different combinations but I can not seem to get it to work.

I want to permanently divert


Code:
[URL unfurl="true"]http://forum.site.com/index.php?home[/URL]

to

Code:
[URL unfurl="true"]http://site.com[/URL]

Only that one page.

The .htaccess file is located in the folder. I did try placing it in the subforum but that did not work either.

Thanks in Advance

[afro]ZeroAnarchy
Experience is a wonderful thing. It enables you to recognize a mistake
when you make it again.
 
I believe the .htaccess at the DocumentRoot would be:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^forum.site.com
RewriteCond %{REQUEST_URI} ^/index.php
RewriteCond %{QUERY_STRING} ^home$
RewriteRule ^(.*) [L,R]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top