Reply to Re: rewrite for sub-domains...

Your name:

Reply:


Posted by Kentor on 12/15/06 19:13

RewriteRule ^(.+?)$ $1?location=%2 [QSA]
gives that same 500 error...

Rik wrote:
> Kentor wrote:
> > weird, i took out this line:
> >
> > #RewriteRule ^(.*?)$ $1?location=%2 [QSA]
>
> Probably should be:
> RewriteRule ^(.+?)$ $1?location=%2 [QSA]
>
> > and now everything works... even the main domain and the other pages
> > with the sub-domain...
>
> Hmmz, are they getting the GET[location]?

I don't know if their getting it but i tried going to
montreal.mysite.com/links.html
and it showed me the page from mysite.com/links.html so i guess its
ok... the real purpose of this is to ofcourse output results and stuff
accordingly to montreal, but i didnt play with this yet, cuz i need to
change lots of stuff... and i dont want to start all this right now. I
just want the difficult stuff to be finished and after when i have a
little time i will change all the pages to their sub domains...

> I'm curious about the rest of you rewrites, any chance to post them?

here are some...

RewriteRule ^([0-9-]+) /redirect.php?id=$1 [QSA]
RewriteRule ^user/([0-9a-zA-Z_]+) /membersPage.php?member=$1 [QSA]

RewriteRule ^profile.html /profileForm.php [QSA]
RewriteRule ^ads.html /ads.php [QSA]
RewriteRule ^post.html /post.php [QSA]
RewriteRule ^signin.html /loginForm.php [QSA]
RewriteRule ^signup.html /registerForm.php [QSA]
RewriteRule ^signout.html /signoutCode.php [QSA]
RewriteRule ^details-code-cottages.html /detailsCodeCottages.php [QSA]
RewriteRule ^details-code-housing.html /detailsCodeHousing.php [QSA]
RewriteRule ^contact-code.html /contactCode.php [QSA]
RewriteRule ^search-rent/apartment-condo-duplex-townhome.html
/searchHousing.php [QSA]
RewriteRule ^search-rent/cottages-hotels-villas-cabins.html
/searchCottages.php [QSA]


RewriteRule ^vacation-rentals/images/([0-9-]+)
/picsOnlyCottages.php?postid=$1 [QSA]
RewriteRule ^vacation-rentals/all.html /listCottages.php [QSA]
RewriteRule
^vacation-rentals/quick-search/rent-cottages-hotels-villas/([^/\.]+)
/searchFormCottages.php?location=$1 [QSA]
RewriteRule
^vacation-rentals/adv-search/rent-cottages-hotels-villas/([^/\.]+)
/advsearchFormCottages.php?location=$1 [QSA]
RewriteRule ^vacation-rentals/success.html /successCottages.php [QSA]
RewriteRule ^vacation-rentals/text-mode/([^/\.]+)
/allTextCottages.php?location=$1 [QSA]
RewriteRule ^vacation-rentals/([0-9-]+) /detailsCottages.php?postid=$1
[QSA]
RewriteRule ^vacation-rentals/ads/([0-9-]+) /linkCottages.php?postid=$1
[QSA]


> --
> Rik Wasmus

[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

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