Hello guys I wanna rewrite my non existent subdomains to my existing folders by mod_rewrite of course ^^ nonexistentdomain.x48.org >> x48.org/nonexistentdomain when I try that code Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www\.x48.org RewriteCond %{HTTP_HOST} ([^.]+).x48.org RewriteRule ^(.*)$ 404.php?x=%1 [L] PHP: It works like a babe but I dont wanna rewrite it to a php file when I try Options +FollowSymLinks RewriteEngine On RewriteCond %{HTTP_HOST} !^www.x48.org RewriteCond %{HTTP_HOST} ([^.]+).x48.org RewriteRule ^(.*)$ %1 PHP: works like a babe // Note: I configured the httpd.conf etc
You might have more success in the Apcahe forum located here: http://forums.digitalpoint.com/forumdisplay.php?f=49