301 Permanent Redirect - Joomla 1.5


#1

Can anyone help me how do I add a permanent redirect to my site? I would like to redirect from “digiterra.hu” to “www.digiterra.hu” in .htaccess

I have already tried the followings, but none worked:

301 Permanent Redirect

RewriteEngine On
RewriteCond %{HTTP_HOST} ^digiterra.hu$[NC]
RewriteRule ^(.*)$ http://www.digiterra.hu/$1[R=301,L]

not worked…

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.digiterra.hu$ [NC]
RewriteRule ^(.*)$ http://www.digiterra.hu/$1 [L,R=301]

not worked…

RewriteEngine On
RewriteCond %{HTTP_HOST} !^www.digiterra.hu$
RewriteRule ^(.*)$ http://www.digiterra.hu/$1 [R=301]

Can anyone help me?

Thanks in advance!
theblase


#2

RewriteEngine on RewriteCond %{HTTP_HOST} ^digiterra\.hu RewriteRule ^(.*)$ http://www.digiterra.hu/$1 [R=permanent,L]

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#3

I have added the mentioned lines to my .htaccess file as you suggested it for me, but the redirect still not works!

If I enter “digiterra.hu” in my browser I will see “http://digiterra.hu” link instead of http://www.digiterra.hu.

You can try it also.

Any idea?


#4

[color=#00CC00]Panel > Domains > Manage Domains[/color]

  • Click Edit next to digiterra.hu

  • Change the How do you like the www in your URL? setting.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#5

Thanks! The mentioned settings working for me! Many thanks!

Do I need to use this setings with the modification in the .htaccess?

RewriteEngine on
RewriteCond %{HTTP_HOST} ^digiterra.hu
RewriteRule ^(.*)$ http://www.digiterra.hu/$1 [R=permanent,L]

?

Thanks in advance!


#6

The htaccess settings shouldn’t be required.

The Panel appears to change the settings at a lower level.

Maximum Cash Discount on any plan with MAXCASH

How To Install PHP.INI / ionCube on DreamHost


#7

Thanks! The domain Permanent redirect now working for me!

:)) Hurray!!!

Regards,
theblase