How? mod_rewrite ([a-Z]+)\.domain\.com to /index.php?name=$1
Posted: Thu Mar 15, 2007 12:22 am
How can i do it? i want that any subdomain that one write, ... (thus)
([a-Z0-9-]+)\.domain\.com --> index.php?name=$1
how can i do that?
i tested with this file
but dont work :S i have not created any subdomain, how can i do to that work with any and not be created handly each one?
([a-Z0-9-]+)\.domain\.com --> index.php?name=$1
how can i do that?
i tested with this file
Code: Select all
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^([a-Z0-9])\.domain\.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/index.php?nombre=$1 [P,L]but dont work :S i have not created any subdomain, how can i do to that work with any and not be created handly each one?