You are here: Re: rewrite for sub-domains... « All PHP « IT news, forums, messages
Re: rewrite for sub-domains...

Posted by Rik on 12/15/06 18:34

Kentor wrote:
> Oh but this only works if I remove these previous lines I had for all
> my other normal redirects...
>
> Options +FollowSymLinks
> RewriteCond %{REQUEST_FILENAME} !-f
> RewriteCond %{REQUEST_FILENAME} !-d
>
> once i put them back with your lines, it shows the main page even with
> http://monteal.mysite.com or just montreal.mysite.com =/
>
> ok i put everything back except for RewriteCond %{REQUEST_FILENAME}
> !-d
> and it still works... so its that line thats messing everything up...
> but i had this line for my normal redirects... whats the purpose of
> this -d ? do i really need it?


It sais: only apply this rule if it isn't an existing directory. Your
webroot exists (/), therefor the rule isn't applied.

You probably don't need it. Then again, different RewriteCond's can
offcourse be applied to different RewriteRules, so just apply them if
they're needed on the other rules.
--
Rik Wasmus

 

Navigation:

[Reply to this 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

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