Redirect loop from old domain to new subdomain

I have an issue with .htaccess rewrite ruleset. www.OldDomain.com with Joomla template is being retired and new website is a WordPress based site having address at http://newdomain.com/subfolder.

For some reason I get the following message: “This webpage has a redirect loop”, but whatever I try it doesn’t work. The new WordPress site has url-friendly links generated by wordpress. I tried to upload a default wordpress .htaccess but it doesn’t work either.

Read More

Can anyone point me in right direction how to solve this issue? Thank you in advance.

The old site was on a different server with the same domain name as the new one.

Current .htaccess file on a domains’ new server is as follows:

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

Related posts

Leave a Reply

1 comment

  1. You can use the following :

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