I have a vbulletin site installed and setup on my server in a subdirectory. I am having issues with having the correct htaccess to route the domain to that subdirectory. I have it working right now and was told this way isnt the best way (but its working). I have several vbulletin sites setup and for some reason this one is giving me problems.
<Files .htaccess>
order allow,deny
deny from all
</Files>
RedirectMatch permanent ^/$ http://motonews.com/forum
The sites settings on the admin have the site URL and homepage URL both set to http://www.example.com/forum. I was told to try this htaccess that it would be better but it wouldnt let people login to the site, or reset passwords or anything for that matter other than view the site.
What is the cleanest way to direct www.example.com to the subdirectory? If no htaccess was provided it was just showing a list of directories on my server (which isnt what I want).
[LIST][] I dislike using the RewriteBase directory because it can adversely affect redirections.
[] You failed to escape the dot characters in your regex (:tup: though for the No Case flag)
[] Capturing the {REQUEST_URI} with the :kaioken: EVERYTHING :kaioken: atom is a waste of server resources
[] Your regex states that you do not know whether you’re using an Apache 1.x or Apache 2.x server but you want only the domain to have been requested. Clearly, that’s NOT what you want. Then you’ve quoted and escaped EVERYTHING in the redirection (when quotes and escapes are never used); how silly is that?[/LIST]
You might benefit from reading the mod_rewrite tutorial linked in my signature as it contains explanations and sample code. It’s helped may members and should help you, too.