Mod rewrite question




Posted by n64 man

OK, I need some code that does this...

I run a hosting company and as such many subdomains are being made, I need this to happen.



Quoted post: ErrorDocument 404 /.html


inside of every .htaccess file on each subdomain OR some kindof coding that will have the same effect across all of the subdomains (since it will be assigned like so.... username.vgchat.info)... Every time they run into a 404 error page, I want them redirected to the hosting site, http://vgchat.info



Posted by Jesse Smith

[noparse]http://vgchat.info/.htaccess[/noparse]

Options +Indexes
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)$ [noparse]http://www.vgchat.com/ [R=301,L][/noparse]




Posted by n64 man

Nope, didnt work. Plus I see no rule to handle 404 errors.