Status
Not open for further replies.

l0calh0st

Active Member
4,052
2010
713
0
Hey, I need some help with my htaccess file which is not working properly.

I got this:

Code:
RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://motionite.com/$1 [R,L]RewriteRule ^estonia  estonia.html
RewriteRule ^estoniavps  estoniavps.html
If I go to http://domain.com/estonia it redirects to estonia.html
http://domain.com/estoniavps redirects to estonia.html too, but it must redirect to: estoniavps.html
Thanks

 
3 comments
I suppose you want to make mod_rewrite URL's?

RewriteRule ^estonia([\/_-])?$ estoniavps.html

And estoniavps.html will be /estonia, and when you go motionite.com/estonia, it will work..
 
I suppose you want to make mod_rewrite URL's?

RewriteRule ^estonia([\/_-])?$ estoniavps.html

And estoniavps.html will be /estonia, and when you go motionite.com/estonia, it will work..

That'll match *one or none* of the characters in the character class (\, /, _ or -).

Just do two rules
Code:
RewriteRule ^estonia/?$ /estonia.html
RewriteRule ^estoniavps/?$ /estoniavps.html

Not sure if the leading / is needed on the location of the actual file.
 
Status
Not open for further replies.
Back
Top