RE: [PHP] mod_rewrite
| From: | Matthew Loff | Date: | Sun, 09 Sep 2001 17:46:59 +0000 |
| Subject: | RE: [PHP] mod_rewrite | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-66616@lists.php.net to get a copy of this message | ||
Subdomains are first a DNS issue... The first place you have to go is
your DNS config, since users.body-builders.org wouldn't exist without an
A or CNAME record.
I don't know if mod_rewrite can do anything about the subdomains like
that, if it can't, you will have to add VirtualHost directives to
httpd.conf for each subdomain.
--Matt
-----Original Message-----
From: BRACK [mailto:brak@nettaxi.com]
Sent: Sunday, September 09, 2001 12:55 PM
To: php-general@lists.php.net
Subject: [PHP] mod_rewrite
I have a website URL www.body-builders.org and users have URLs
like www.body-builders.org/user According to the virtual hosting
rules I can do any configuration tweaks by .htaccess file.
What I want to do is to offer my users URLs like users.body-
builders.org Is it possible to do with rewrite rules in .htaccess?
I tried this in my .htaccess but it doesnt help -
RewriteEngine on
RewriteCond %{HTTP_HOST} ^users\.body-builders\.org$
RewriteRule ^.*$ http://www.body-
builders.org/users/indexr.php [L]
Youri
PS there are three lines in code.
<>< <>< <>< <>< God is our provider ><> ><>
><> ><>
http://www.body-builders.org
New!!! - http://body-builders.org/index.php?links=1
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net To
contact the list administrators, e-mail: php-list-admin@lists.php.net