Viewing 6 replies - 1 through 6 (of 6 total)
  • Are the countries in bottom menu your categories if so they are working fine when I click on them

    Thread Starter vagabondjourney

    (@vagabondjourney)

    If you type in the former address of the categories into your browser (which have the /travelogue/ directory in the url) it won’t redirect. WordPress has taken care of the “in-system” links. The ones I want to redirect are all the links to category pages that I’ve inserted manually into the pages myself over the past 7 years.

    Also, my main worry is why the old homepage is not redirecting, as it has tons of links pointing at it.

    Thread Starter vagabondjourney

    (@vagabondjourney)

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

    # END WordPress

    This is the code that WordPress automatically put in the htaccess file when I reset my blog address. For some reason it’s not redirecting the former blog homepage.

    Thread Starter vagabondjourney

    (@vagabondjourney)

    Sorry, the last post was from the htaccess that was put in my root. The code that was put in my htaccess file in my directory (/travelogue/) is:

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

    # END WordPress

    I just did a WP install that had this exact same problem.

    I followed these instructions:

    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory

    to give WordPress it’s own directory and ended up with a weird redirect at login.

    Turns out I had to remove the directory from the .htaccess file I had in the directory itself, so that the root .htaccess and the directory .htaccess were identical.

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

    I had the same issue! Followed the same official instructions, and my site stopped working.

    Found the solution in a blog. https://upcode.tk/site-not-working-after-moving-wordpress-own-directory/

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Redirect Not Working After Giving WordPress Its Own Directory’ is closed to new replies.