WordPress.org

Ready to get started?Download WordPress

Forums

Redirection
Site relocated - not redirecting (2 posts)

  1. webbrewers
    Member
    Posted 2 months ago #

    New site is located in a directory below public-html so public_html/dev.
    Primary domain was pointed at this directory via .htacess in public_html
    A directory containing all old site page file names created in dev directory, so public_html/dev/Pages.
    Using WordPress module, old urls have been added to Redirection:
    /Pages/page.aspx
    Pointed at
    domain.com/newpage/
    The dummy old page opens but doesn't redirect.
    Is it something to do with the .htaccess file either located at the root or in the dev directory? Or is it that the old page files are empty and need some content for the WP redirect to work?

    https://wordpress.org/plugins/redirection/

  2. webbrewers
    Member
    Posted 2 months ago #

    Update:
    Manually adding a simple redirect to .htaccess BELOW the WP bit works:
    Redirect 301 /Pages/page.aspx http://domain.com/about/
    Manually adding the code the plug in generates doesn't work. I exported the apache and csv versions to test this out. The apache version failed, so I rebuilt using the csv data and formatted as above and that worked.
    Also tested it out on another site hosted elsewhere and got the same results so I guess there's something wrong with the plug in.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.