Posted by Berimor on 11/11/64 11:32
On Sun, 20 Nov 2005 13:56:39 +0100, Andrzej <nospam@daasfdsadgfdsfgdsf.pl>
wrote:
> There is a domain www.xxxxxxxxx.pl, I would like to enter:
> www.xxxxxxxxx.pl/adres/ and get www.xxxxxxxxx.pl/adres.php
> so I put in .htaccess a rule:
> RewriteRule (.*)/$ /$1.php [L]
> Everything works ok, but now I decided to make a subdomain "test". I
> enter:
> www.test.xxxxxxxxx.pl and my webbrowser connects to
> www.xxxxxxxxx.pl/test.php what can I do to use subdomains. Do you have
> any idea? I would be very grateful for help.
Try to use this construction instead:
RewriteBase /
RewriteRule ^([^\.\\/]+)$ /$1.php [L]
--
Exact Meta Search | Major Search Engine
http://exactsearcher.com
[Back to original message]
|