Hi All,
I am still getting my head round htaccess and am hoping that someone can help.
I want to set it up so that for example example.spangoo.com will load spangoo.com/?p=example.
I have tryed alot of different variations to try and get this to work and am getting no where ... is there any other server settings need changed so it will work???
code i have is
I am doing this on a Blacknight VPS running Debian
I am still getting my head round htaccess and am hoping that someone can help.
I want to set it up so that for example example.spangoo.com will load spangoo.com/?p=example.
I have tryed alot of different variations to try and get this to work and am getting no where ... is there any other server settings need changed so it will work???
code i have is
Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.spangoo\.com
RewriteCond %{HTTP_HOST} ([^.]+)\. spangoo\.com
RewriteRule ^(.*)$ index.php?p=%1
I am doing this on a Blacknight VPS running Debian