Jump to content
Sign in to follow this  
dejanovicd

htaccess ip redirect problem

Recommended Posts

Imam problem sa redirect-om u fajlu htaccess.Ubacio sam ove kodove za redirect ip adrese na moj domen.Nisam siguran da li su dobri.Kada proverim u validatoru izbacuje mi gresku kaze da uopste ne postoji redirect za ip adresu.Ovo su kodovi:

 

 

RewriteEngine on
RewriteCond %{http_host} ^demax.co.rs [NC]
RewriteRule ^(.*)$ http://www.demax.co.rs/$1 [R=301,NC] 
RewriteEngine on
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/]+/)*index\.htm\ HTTP/
RewriteRule ^(([^/]+/)*)index\.htm$ http://www.demax.co.rs/$1 [R=301,L]
RewriteEngine on
RewriteCond %{HTTP_HOST} ^85\.17\.187\.29
RewriteRule (.*) http://www.demax.co.rs/$1 [R=301,L]

 

 

 

Da li neko moze da mi kaze u cemu je problem?

 

Hvala u napred!

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...