Forum FAQForum FAQSearchSearch MemberlistMemberlist Forum ignore listForum ignore list RegisterRegister ProfileProfile Log in to check your private messagesLog in to check your private messages Log inLog in
.htaccess i redirect 301

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side
View previous topic :: View next topic  
Author Message
tic984



Joined: 07 Sep 2003
Posts: 189
Location: Delnice

PostPosted: 15.05.2007 06:26    Post subject: .htaccess i redirect 301 Add user to your forum ignore list Reply with quote

Imam ovakva pravila :

RewriteCond %{HTTP_HOST} ^www.domena.info [NC]
RedirectMatch 301 ^/international/(.*)$ http://www.domena.info/$1
RewriteRule ^(.*)$ /international/$1


Postoji folder /international/ kojie je prije bio koristen za ptikaz internacionalnih stranica ...
A njega sad ekipa vize ne zeli i zeli urlova tipa www.domena.com/en umjesto www.domena.com/international/en/


sad ako komentiram ili 2 liniju ili 3 liniju rewrite radi .....
Ako komentiam 2 on radi na /international/en ali ne redirecta na /en
a ako komentiram 3 linuju onda redirecta ok na /en ali mi kaze da en flder ne postoji (sto je istina, on je unutar internationala!)

Zna netko mozda u cemu bi bio problem!?!?

Hvala unaprijed!

_________________
ah..
Back to top
View user's profile Send private message Visit poster's website
tic984



Joined: 07 Sep 2003
Posts: 189
Location: Delnice

PostPosted: 16.05.2007 07:37    Post subject: Add user to your forum ignore list Reply with quote

Hm ovo sam skuzio, uso je valjda u neki loop jer se folder zove international i pokudsavam redirectat international u taj folder i tak Smile

al sad drugi problem

RewriteCond %{HTTP_HOST} ^www.domena\.info$ [NC]
RedirectMatch 301 ^/international/(.*)$ http://www.domena.info/$1
RewriteRule ^(.*) int/$1 [L]

Ovo mi sad url tipa
www.domena.com/en pretvara u www.domena.com/int/en
a www.domena.com/en/ radi ok?


samo je stvar u ovome slashu?
Ima neko ideju kako ovo fixat? Sad

_________________
ah..
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    mi3dot.org Forum Index -> Server-side All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
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 vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group