Vyskytol sa s tym jeden problem...
Ked mam nasledujucu adresu:
Kód:
http://www.domain.sk/test/accomodation/slovensko/terchova/search/?arrival=18.06.2013&departure=19.06.2013&flexible=0&rooms=2&persons=4
tak to pouzije tento rewrite:
Kód:
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ accomodation_detail.php?title_url=$1&country_url=$2&city_url=$3&accomodation_url=$4
namiesto toho, co si mi poradil, len trochu som ho upravil takto:
Kód:
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/search/?$ accomodation.php?title_url=$1&country_url=$2&city_url=$3 [QSA]
Dam sem pre istotu vsetky riadky v poradi, ktore maju nieco spolocne s tymto problemom:
Kód:
# ********** accomodation_detail.php **********
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/?$ accomodation_detail.php?title_url=$1&country_url=$2&city_url=$3&accomodation_url=$4
# ********** accomodation.php **********
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/search/?$ accomodation.php?title_url=$1&country_url=$2&city_url=$3 [QSA]
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/search/?$ accomodation.php?title_url=$1&country_url=$2 [QSA]
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/([A-Za-z0-9-]+)/$ accomodation.php?title_url=$1&country_url=$2&city_url=$3
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/search/$ accomodation.php?title_url=$1 [QSA]
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/([A-Za-z0-9-]+)/$ accomodation.php?title_url=$1&country_url=$2
RewriteRule ^(ubytovanie|ubytovani|accomodation|unterkunft)/$ accomodation.php?title_url=$1