- Code: Select all
[QSA,L]
with
- Code: Select all
[QSA,E=MR:true,L]
And then try
- Code: Select all
if(isset($_SERVER['REDIRECT_MR']) && isset($_GET['lang']) && !empty($_GET['lang']))
Also, clear your browser's cache before trying it.
[QSA,L]
[QSA,E=MR:true,L]
if(isset($_SERVER['REDIRECT_MR']) && isset($_GET['lang']) && !empty($_GET['lang']))
7007 wrote:Sadly, still not working.
I wonder if you can suggest me to do it trough .htaccess - as all the URL's on the site pointing to domain.com/eng/home/ and the address bar still reads domain.com/index.php?lang=eng&page=home - very confusing to the eye.
Thanks again for your time and patience,
Sasha
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^.+(/images/.+)$ $1 [L]
RewriteRule ^.+(/css/.+)$ $1 [L]
RewriteRule ^.+(/js/.+)$ $1 [L]
RewriteRule ([^/]+)/([^/]+)/$ /index.php?lang=$1&page=$2 [QSA,L]
http://www.domain.com/lang/page/
RewriteRule ^.+(/images/.+)$ $1 [L]
RewriteRule ^.+(/css/.+)$ $1 [L]
RewriteRule ^.+(/js/.+)$ $1 [L]
RewriteRule ^.+(/(css|images|js)/.+)$ $1 [L]
Return to Friendly URLs with Mod_Rewrite
Users browsing this forum: No registered users and 78 guests