View Single Post
Old 04-27-2018, 05:06 PM  
Cyber Fucker
Hmm
 
Cyber Fucker's Avatar
 
Industry Role:
Join Date: Sep 2005
Location: On an endless road around the world for rock and roll.
Posts: 12,642
Quote:
Originally Posted by Mr Pheer View Post
This almost works but it gives me some weird redirect loop
Yup, could be, cause the url redirected to also contains the "bozeman" keyword.

So, you can add some condition before to ignore the url you are redirecting to for example:


Code:
<IfModule mod_rewrite.c>
RewriteEngine  on
RewriteCond %{REQUEST_URI} !^.*(\/montana\/bozeman\/index.php)$
RewriteCond %{REQUEST_URI} ^.*(bozeman).*$
RewriteRule ^ /montana/bozeman/index.php [L,R=302,NE]
</IfModule>
__________________
Cyber Fucker is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote