dynamic url redirection via htaccess
I really need help please.
I need to redirect this URL using htacess:
From this: http ://example.com/city/Chennai/search/search_display_event_type/category1
To this: http ://example.com/chennai/category1
Is there any way we can write in htacees that will redirect like below url http ://example.com/(chennai | pune | mumbai)/category1
I know this is pretty hard, but I'm really not sure what type of rule would work for this. because I dont want to write same lines of code for just city change, so i want something like array match in htaccess.
Any help is greatly appreciated!
-
quickscrum -
Thanks
{{ DiscussionBoard.errors[9373402].message }} -
-
Kasparas -
[ 1 ] Thanks - 2 replies
{{ DiscussionBoard.errors[9373414].message }}-
jhakasseo -
Thanks
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9373690].message }} -
-
minirich -
[ 1 ] Thanks
{{ DiscussionBoard.errors[9378225].message }} -
-
-
jhakasseo -
Thanks - 1 reply
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9379210].message }}-
minirich -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[9379309].message }}-
jhakasseo -
Thanks - 1 reply
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9379684].message }}-
minirich -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[9381116].message }}-
jhakasseo -
Thanks
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9381961].message }} -
-
-
-
-
-
minirich -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[9382723].message }}-
jhakasseo -
Thanks - 1 reply
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9385156].message }}-
minirich -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[9385286].message }}-
jhakasseo -
Thanks - 1 reply
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9393186].message }}-
minirich -
[ 1 ] Thanks - 1 reply
{{ DiscussionBoard.errors[9435153].message }}-
jhakasseo -
Thanks - 1 reply
SignatureReal Youtube & Instagram Promotion Click Here{{ DiscussionBoard.errors[9435249].message }}-
minirich -
Thanks
{{ DiscussionBoard.errors[9436537].message }} -
-
-
-
-
-
-