Support » How-To and Troubleshooting » HELP! Htaccess (www) help!

HELP! Htaccess (www) help!

  • Okay here’s the deal.

    I have a directory (gameboyz.net/directory) and I want to set up my htaccess such that gameboyz.net gets redirected to http://www.gameboyz.net BUT gameboyz.net/directory DOES NOT get directed. In fact, if http://www.gameboyz.net/directory is entered it will be directed to gameboyz.net/directory.

    I added this `RewriteCond %{HTTP_HOST} ^gameboyz.net
    RewriteRule (.*) http://www.gameboyz.net/$1 [R=301,L]` to the “.htaccess” in the root folder. When I enter gameboyz.net into the address bar, sure enough at the status bar below the “www.” appears in front. Then it dissapears, and appears again. Then Firefox gave me an error saying it is a never-ending loop. Okay, so I tried with my /directory which is a Joomla installation. It works like a charm.

    So I’m guessing there is SOME code inside the .htaccess file for WordPress that is conflicting with the code to make the www appear. What is it and how do I fix it?


Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘HELP! Htaccess (www) help!’ is closed to new replies.