Reply to Re: Mod Rewrite and subdomains

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация