- Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^(.*)\.abzde\.com$
RewriteCond %{HTTP_HOST} !^www\.abzde\.com$
RewriteRule (.*) http://abzde.com/%1$1 [P]
this doesn't work, i get a 404 error,
when i remove the [P] it works, but ofcourse it goes to abzde.com/blah instead of going there, but looking like it stays on blah.abzde.com, whats wrong?