I installed my forum into a subdirectory, because it came out of the box that way. If I had known better, I would have installed it directly into public_html but it's too late now.
I want to completely hide the subdirectory from users (using .htaccess in public_html), because (a) I don't want anyone to know which forum I'm using, ( the forum has a really dumb name that I want to hide, and © it just looks better.
I know I've done this before with other websites, but I can't find the magical code snippet after searching for over an hour. The best I've found so far has been this:
>RewriteCond %{REQUEST_URI} !subdir/
RewriteRule (.*) http://example.com/subdir/$1 [L]
This works...halfway. It redirects the front page to /subdir, but any links from the front page have /subdir in them. No good. I want /subdir to disappear completely from all URLs.
I also tried:
>DocumentRoot /subdir
but I just get 500 internal server error, "/home/username/public_html/.htaccess: DocumentRoot not allowed here"