Hi guys! and girls.
First post here, ive been googling like mad and decided to go out and ask for help. I've hit a wall up here and whas hoping people here could help and point me in the right direction.
I've got a website wich needs some advanced url rewriting. Perhaps the thing i want to archieve isn't possible, but i doubt that.
I have a site wich is powered by wordpress with prety url rewrites. What i want to archieve is to look at the url and see if it has mydomain.com/products/productname" and then rewrite those pages to "productname.mydomain.com"
Is this possible with mod rewrite? Note that the url's are already being rewritten using:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.com
RewriteRule ^(.*)$
http://www.domain.com/$1 [r=301,L]
# BEGIN WordPress
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress