• Hi everyone,

    I just made a test installation for my wordpress blog that I am planning on moving from wordpress.com, but half an hour ago, around the time I changed the permalinks from one setting to basic, I then started to receive a message saying too many redirects.

    I tried logging into the ACP but everytime I am taken back to the login form. The installation in question is pokevolution.net/wp

    Any help would be greatly appreciated. Thanks in advance.

Viewing 15 replies - 1 through 15 (of 20 total)
  • @masonck you can try deleting .htaccess and log into WP then setting your Permalinks all over again. Make sure that the url is also correct under Settings. If after the URL is fine and you regenerated the new permalinks by going into Permalinks settings and clicking save, still happens. Try renaming the Theme and Plugins folders, then try accessing the site after that without removing .htaccess again.

    Let us know how that works out.

    Thank you.

    Thread Starter MasonCK

    (@masonck)

    So I tried deleting the htaccess but I still can’t login. I also tried renaming the plugins and themes folders.

    @masonck,

    Alright, go into your wp-config.php file and some where near the bottom add the two following lines;

    define('WP_HOME','https://pokevolution.net/wp');
    define('WP_SITEURL','https://pokevolution.net/wp');

    Let me know if that works. If it does, after you log into WP Admin, go to Settings and make sure that in the two places you have your URL showing, they are exactly the same, https://pokevolution.net/wp in one, has to be https://pokevolution.net/wp in the other. Something like https://pokevolution.net/wp in one, and https://www.pokevolution.net/wp in the other will bring this error also.

    Let me know. Thanks!

    Thread Starter MasonCK

    (@masonck)

    I thought this would work but I am now getting server errors.

    Try placing those two lines at the beginning of wp-config.php

    Thread Starter MasonCK

    (@masonck)

    Nope still receiving server errors.

    Still too many redirects or something else?

    Thread Starter MasonCK

    (@masonck)

    Still too many redirects when I don’t have that placed in the wp-config.php file but I get server errors no matter where I place that code in that file.

    Thread Starter MasonCK

    (@masonck)

    I don’t know if this is normal correct me if I am wrong, but everytime I try to login VIA wp-admin I get redirected to wp-login. Don’t know if this helps.

    @masonck that’s perfectly fine. Did you have any redirects setup through plugins on your site?

    Let’s try this as the next step;

    Go to php my admin (database). Click on the options table. It might be wp_options or whatever table prefix you use. Click on the SQL tab at the top of the page.

    Run this query:
    SELECT * FROM wp_options WHERE option_name = ‘active_plugins’;

    Delete contents form the row returned by the query(all your doing is deactivating all your plugins).

    Click GO.

    Refresh your site. Log in. Enable the plugins one by one to see which one was causing the problem.

    also when you are in options; look for ‘siteurl’ and ‘home’ both urls, there please tell me what they are.

    Thread Starter MasonCK

    (@masonck)

    Home and site url are both https://pokevolution.net/wp

    So I ran the query and it disabled disqus but still to no avail.

    Thread Starter MasonCK

    (@masonck)

    So I tried to replicate this on a similar installation using a fresh install and I changed the permalinks to the first option (plain) just like i did in the installation we are trying to fix and it caused the same “too many redirects” issue.

    For some reason, I’m seeing a redirect from https://www.pokevolution.net/wp/ to https://pokevolution.net/wp/ and back.

    I mean other then plugins causing this or wrong url, deleting .htaccess file or putting the two lines into wp-config.php should be working. I mean in wp-config.php we are forcing it to use what we want, and not what is anywhere else.

    You can also add this to the wp-login.php and try to login to fix the url issue;

    update_option(‘siteurl’, ‘https://www.pokevolution.net/wp’ );
    update_option(‘home’, ‘https://www.pokevolution.net/wp’ );

    I mean https://www.pokevolution.net/wp redirects to https://pokevolution.net/wp and https://pokevolution.net/wp is redirecting to https://www.pokevolution.net/wp.. so you have your urls mixed, which creates the loop.

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘Too many redirects’ is closed to new replies.