Forums

How to redirect the old url (3 posts)

  1. sunilkumarnehra
    Member
    Posted 2 years ago #

    I had a wordpress site hosted at subdirectory ( http://careerblog.in/sarkari-naukri )with permalink structure

    /%year%/%monthnum%/%day%/%postname%/

    (http://careerblog.in/sarkari-naukri/%year%/%monthnum%/%day%/%postname%/)

    Now I have moved it to root directory (http://careerblog.in)with permalink structure as given below.

    /India-Jobs/%postname%/%post_id%

    (http://careerblog.in/India-Jobs/%postname%/%post_id%)

    now after moving to root directory, I get lot of 404 error.

    I tried plugins like UPDATE URL, Permalink Redirection , Advance Permalink etc. but of no use.

    Help me how to proceed to do away with 404 erros.

    Problem No. 2

    I am not able to search with category, here again at new directory I get the 404 error.

    Looking forward to your valuable guidance.

    Thanks in advance.

  2. Shane G.
    Member
    Posted 2 years ago #

    Hi,

    Reset your desired permalink from wordpress admin area and add this code in htaccess of your blog/site:

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

    Now, check with your blog posts and pages.

    Thanks,

    Shane G.

  3. sunilkumarnehra
    Member
    Posted 2 years ago #

    Thank you , i will try this.

    Can i keep the existing permalink as they are indexed.

Topic Closed

This topic has been closed to new replies.

About this Topic