• Could i please have so advice on the following i have two url setup on my hosting account.

    https://www.dcdteachernetwork.org/

    https://www.dcdteachernetwork.co.uk/

    if i setup a redirect to redirect from .org to .co.uk i get this error.

    This web page has a redirect loop.

    The web page at null has resulted in too many redirects. Clearing your cookies for this site may fix the problem. If not, it is possibly a server configuration issue and not a problem with your computer.

    NOTE: If accepting the site’s cookies does not resolve the problem, it is probably a server configuration issue and not your computer.

    Can you please advise me on this

    Thanks

Viewing 5 replies - 1 through 5 (of 5 total)
  • Did you clone both sites?

    I guess you make a redirect and then clone both sites, hence they both are pushing every request to each other and causes a redirect loop

    If you did it via mod rewrites, then post the content of .htaccess of each site here

    Thread Starter gum1982

    (@gum1982)

    Thanks for the quick reply. i dont think the site has been cloned. i have only been given the ftp details for one.

    when you say cloned i assume you mean two full duplicates of the site in seperate folders?

    [IMG]https://i30.tinypic.com/2vbrd6f.jpg[/IMG]

    this is my ftp.

    [IMG]https://i29.tinypic.com/25ixgfs.jpg[/IMG]

    the .htaccess file is as follows.
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Sorry im not familiar with this problem.

    Thread Starter gum1982

    (@gum1982)

    <img src=”https://i29.tinypic.com/25ixgfs.jpg&#8221; border=”0″ alt=”Image and video hosting by TinyPic”>

    hello,

    how about checking the wordpress options page (General Settings)

    or try looking at (https://www.yoursite.com/wp-admin/options.php ) it will give you all options of your blog, look at there and see if the site/blog urls are same on both sites?

    .htaccess looks fine

    Thread Starter gum1982

    (@gum1982)

    hi thanks for your reply

    I checked general setting and both urls where the same so i checked the options.php and couldnt find anything.

    Then i had an email back from my host telling me to add this to the .htaccess file

    RewriteCond %{HTTP_HOST} ^(www\.)?dcdteachernetwork.org
    RewriteRule ^(.*)$ https://www.dcdteachernetwork.co.uk/$1 [R=permanent,L]

    And now its working perfect.

    The site had been hacked i was fixing it for a client the hack had been added to the wp-options in the database and in the uploads directory in miscellaneous option in wordpress, and was turning all the posts into pages so this might have caused the problem.

    Thanks for your help

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘redirect loop.’ is closed to new replies.