htaccess Elite

.htaccess tutorial


All times are UTC [ DST ]





Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: prepending query $ w/ "en" when it doesn't contain "cs"|"de"
PostPosted: May 16th, '08, 10:44 
Offline

Joined: May 16th, '08, 10:39
Posts: 1
hello, i got a simple task and a problem.
i wanted my .htaccess to prepend "en" if it got a string like "/hotel/menu" not starting with /cs/ or /de/
but i get en/hotel/menu/menu :-0
and even if it starts with "cs" i get en/cs/hotel/menu/hotel/menu
how is this possible? it seems it loops somewhere...

RewriteCond %{REQUEST_URI} !^(cs|de)
RewriteRule ^(.*)$ en/$1
RewriteRule ^(.*)$ nfo.php?TEST=$1 [L]

can you show me a quick fix please?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 11 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB