HELP to do specific url rewriting !!
-
Hello,
My name is sabrina.
First sorry for my english my native language is French.
first I ‘m going to explain you my issue !
– the url of my website on a page it’s : https://domainname.fr/information
– “information” is the name of my page created with wordpress (which has been rewritten through the rewrting button on wordpress)
default it was : https://nomdomaine.fr/?p=123– in my page “information” thanks to PHP (plugin : exec-php) I display lots of link about hotel which come from a table that I have created in my database.
– With my datas about hotel I have a link like this : https://domainname.fr/information?dept=75&town=paris (dept =district)
– My issue is : I like to rewrite my URL to have https://name_domain.fr/hotel_nameOfMyTown or
https://name_domain.fr/hotel_parisDo you know how can I do? and in what folder I have to do my regex (htaccess…)? what code should i input ??
First If I have to do my regex in the htaccess (but I’m not sure =()
I think I should have do that :
RewriteRule ^\hotel_([a-z]+).html$ information?dept=75&town=paris [L]
But Im not sure because Im novicebut if it is somewhere else I don’t know what code use =(
i would greatly appreciat your help because i am stuck for 2 weeks now ??
Thank you :)))))
- The topic ‘HELP to do specific url rewriting !!’ is closed to new replies.