View previous topic :: View next topic
Author
Message
spa Joined: 30 Jul 2008 Posts: 2
Posted: 30.07.2008 18:44 Post subject: Redirekcija domene bez www prefiksa na folder
ž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
B-Scan Joined: 19 Apr 2006 Posts: 8 Location: Zagreb
Posted: 05.11.2008 14:29 Post subject:
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
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