Viewing 15 replies - 1 through 15 (of 15 total)
  • moshu

    (@moshu)

    Did you overwrite the htaccess during the upgrade?

    What are the two URL values in your admin > Settings > General?

    Thread Starter josephratliff

    (@josephratliff)

    moshu

    Nope…I didn’t personally overwrite the .htaccess…and I used the WP Automatic Upgrade plugin to do the job.

    The two url values are https://www.mysite.com/blog and https://www.mysite.com/blog in both fields.

    Thread Starter josephratliff

    (@josephratliff)

    moshu,

    I should also let you know that I did try to change the permalink structure to a custom structure…which to my understanding would update the .htaccess file…and nothing changed.

    Still have the redirect issue described above.

    Thread Starter josephratliff

    (@josephratliff)

    Alright…

    Now…after reading some .htaccess posts in the forum here…I have altered my .htaccess file. After adjusting this, https://www.mydomain.com/blog now does NOT redirect any more to the main domain https://www.mydomain.com/

    Instead, now the theme does not show, I have a “white screen” showing.

    I uploaded the following .htaccess to my host:

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

    # END WordPress

    Do I need to make further mods?

    zmoneyent

    (@zmoneyent)

    I have this same exact problem.

    I just simply changed my permalinks and everything is screwed. Simple thing and I can’t even access the admin settings to change it back.

    I had https://audacity.ubercrue.com/blog

    Changed it to

    https://Blog.Audacitysounds.com

    This would have to be the worst bug I have come across…

    Edit:

    I uploaded a htaccess file because I didn’t even have 1

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

    # END WordPress

    Still doesn’t work can anyone explain or tell me part needs to be modified?

    Thread Starter josephratliff

    (@josephratliff)

    Now…it redirects again.

    If you type in https://www.mydomain.com/blog , it removes the /blog and redirects to my main site https://www.mydomain.com

    No more white screen…but the same redirecting problem.

    All I did in the very beginning of today was use WordPress Automatic Upgrade plugin to upgrade this blog from v2.3.3 to the current one.

    Then…the problems identified in this thread began.

    Thread Starter josephratliff

    (@josephratliff)

    Oh yeah…by the way I am completely stuck at this point…and I will patiently wait for the experts to reply on this one.

    zmoneyent

    (@zmoneyent)

    I’ll also be waiting

    Thread Starter josephratliff

    (@josephratliff)

    Well, I just said “forget it”…and hired a technical wizard to restore the old version from the backups…as I was tired of it.

    He did mention that it seemed to be a problem with the “login script”…whatever that’s worth.

    Sheesh.

    I will leave this as “unresolved” for you ZmoneyENT ??

    zmoneyent

    (@zmoneyent)

    Thanks man.

    Can some 1 give me some help. I don’t got no backups ??

    iridiax

    (@iridiax)

    ZmoneyENT: Did you change the WordPress or Blog URL and your blog then broke? If so, check out the following for instructions on moving WordPress and/or restoring your URL settings:

    https://codex.www.ads-software.com/Moving_WordPress
    https://www.tamba2.org.uk/wordpress/site-url/
    https://codex.www.ads-software.com/Changing_The_Site_URL

    moshu

    (@moshu)

    I just simply changed my permalinks and everything is screwed. Simple thing and I can’t even access the admin settings to change it back.
    I had https://audacity.ubercrue.com/blog
    Changed it to
    https://Blog.Audacitysounds.com

    Actually, you did NOT change your permalinks – you did change the URL of the blog and that’s not the same. You can NOT change the two URL values in the Settings arbitrarily to ‘fantasy’ addresses…

    Follow the tutorials that iridiax linked to!

    zmoneyent

    (@zmoneyent)

    I was ignorant, I researched it afterwards and relized that I really screwed it.

    I’ll use these tutorials as a guide but my host is very hard to get hold of. I’ll try these thanks.

    zmoneyent

    (@zmoneyent)

    Quick fix method

    If you have access to the site via FTP, then this method will help you quickly get a site back up and running, if you changed those values incorrectly.

    1. FTP to the site, and get a copy of the active theme’s functions.php file. You’re going to edit it in a simple text editor (like notepad) and upload it back to the site.

    2. Add these two lines to the file, immediately after the initial “<?php” line.

    update_option(‘siteurl’,’https://example.com/blog&#8217;);
    update_option(‘home’,’https://example.com/blog&#8217;);

    Use your own URL instead of example.com, obviously.

    3. Upload the file back to your site, in the same location. FileZilla offers a handy “edit file” function to do all of the above rapidly, if you can use that, do so.

    4. Load the login or admin page a couple of times. The site should come back up.

    5. Repeat the above steps, but remove those lines. IMPORTANT: Do NOT leave those lines in there. Remove them immediately after the site is up and running again.

    If there is no functions.php file in the theme: Create a new text file called “functions.php”. Edit it with notepad, and add this text to it, using your own URL instead of example.com:

    <?php
    update_option(‘siteurl’,’https://example.com/blog&#8217;);
    update_option(‘home’,’https://example.com/blog&#8217;);

    Upload that to your theme directory, then proceed as stated above. Remove the file afterwards

    Fixed it with that method!

    This is resolved. Thanks allot peoples, wordpress got nice support for nubs like me =)

    The quick fix method totally worked!!! Thank God! I was going to start crying. ??

Viewing 15 replies - 1 through 15 (of 15 total)
  • The topic ‘“WP installed in /blog directory redirects to main domain after upgrade!”’ is closed to new replies.