1st sorry for the title i didn't know how to name the topic
I've read almost all topics in the forum, but my english is not very good, so i need some help.
With simple words i want subdomains, now i'm using this code:
- Code: Select all
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www\.redpicasso\.com
RewriteCond %{HTTP_HOST} ([^.]+)\.redpicasso\.com [NC]
RewriteRule ^(.*)$ http://www.redpicasso.com/home/%1 [QSA,L]
It works fine, but the only problem is that:
when someone uses www.alex.redpicasso.com or http://alex.redpicasso.com it redirects to www.redpicasso.com/home/alex/
thats ok but it changes the address to www.redpicasso.com/home/alex/ and i don't want that...
For example when i use:
- Code: Select all
<VirtualHost 85.130.66.38:80>
ServerName www.redpicasso.com
ServerAlias alex.redpicasso.com www.alex.redpicasso.com
DocumentRoot C:/home/alex
</VirtualHost>
the result is exactly what i want, the address is alex.redpicasso.com and it doesen't change to www.redpicasso.com/home/alex/ even the user is in www.redpicasso.com/home/alex/music/ or something like this the address remains www.alex.redpicasso.com/music/
How can i do this with mod_rewrite?
10x