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
Redirekcija domene bez www prefiksa na folder

 
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 -> SEO
View previous topic :: View next topic  
Author Message
spa



Joined: 30 Jul 2008
Posts: 2

PostPosted: 30.07.2008 17:44    Post subject: Redirekcija domene bez www prefiksa na folder Add user to your forum ignore list Reply with quote

želim http://www.domena.com redirektat na http://domena.com/folder/

dakle, da bude bez www prefiksa kad netko upiše

http://www.domena/folder/igre.php

da automatski dobije

http://domena/folder/igre.php


uredno radi

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domena.com$ [OR]
RewriteCond %{HTTP_HOST} ^www.domena.com$
RewriteRule ^/?$ "http\:\/\/www\domena\.com\/folder" [R=301,L]

ali ne gubi se "www"....

moze pomoć?
Back to top
View user's profile Send private message
B-Scan



Joined: 19 Apr 2006
Posts: 8
Location: Zagreb

PostPosted: 05.11.2008 13:29    Post subject: Add user to your forum ignore list Reply with quote

Probaj ovo:

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.domena\.com [NC]
RewriteRule (.*) http://domena.com/$1 [R=301,L]

_________________
SEO blog
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 -> SEO 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