Posts: 730
Name: John
Location: United States of America, California
|
I have a problem with sub domainnames
http://forums.technologyforever.com does not go to the correct place I think I might have conflicting code in my .htaccess could you take a look below in the red I use this code may be there is a conflict Look in the red
#REWRITE
RewriteEngine on
# 301 IP to domain
RewriteCond %{http_host} ^209.123.147.87 [NC]
RewriteRule ^(.*)$ http://www.technologyforever.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^technologyforever\.com
RewriteRule ^(.*)$ http://www.technologyforever.com/$1 [R=permanent,L]
RewriteRule ^/forums/(.*)$ http://www.technologyforever.com/forums/$1 [R=permanent,L]
RewriteRule ^game([0-9]+).html$ game.php?page=$1 [NC,L]
RewriteRule ^g([0-9]+).html$ gameload2.php?page=$1 [NC,L]
RewriteRule ^games.php$ game1.html
RewriteRule ^g([0-9]+).php$ g$1.html
RewriteRule ^youtube.com yt.php
RewriteRule ^contact.html contact.php
#
#subdomaincodebelow
RewriteBase /
RewriteCond %{REQUEST_URI} !^/-
RewriteCond %{HTTP_HOST} ^([^\./]+)
RewriteCond %{DOCUMENT_ROOT}/-%1 -d
RewriteRule ^(.*)$ -%1/$1 [L]
#subdomaincodeabove
#
|