'htaccess RewriteRule - how to replace get parameter to &
I know that there are many post in here about RewriteRule regex question, but my one is difference. I follow this tutorial (https://www.visualscope.com/seo-friendly-urls.html) to make a seo friendly url and it work except when user change language.
URL (this works):
/wedding-venue-details/abc-hotel/ -> /wedding-venue-details/?seoURL=abc-hotel
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /
RewriteCond %{ENV:REDIRECT_STATUS} ^$
RewriteRule ^wedding-venue-details/(.*)$ ./wedding-venue-details/?seoURL=$1
</IfModule>
but if the user tries to change the language in this page, the URL will become:
/wedding-venue-details/abc-hotel/?lang=en
I just don't know how to replace ?lang=en to &lang=en and append to the end, I tried but still can't get it work.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
