Forums

[resolved] Redirect root folder to desired homepage (4 posts)

  1. jared.novak
    Member
    Posted 2 years ago #

    Hello everyone,

    I have a Word Press site with the .com url directed at my homepage.

    http://www.productofchaos.com

    will take you to

    http://www.productofchaos.com/chaos/content/?page_id=9

    Now my problem is that when you do a google search for "product of chaos" the .com AND the blog address url appear in those search results, the blog address is

    http://www.productofchaos.com/chaos/content

    chaos/content being the Word Press root directory

    Now my question is this, if users click the above link, how do I redirect from "chaos/content" to "chaos/content/?page_id=9" which is the actually homepage of the site. Please ignore the hideous permalinks, I did this site with the default theme and couldnt get comments to work if I changed the permalink settings. Couldnt find a solution so I gave up and stuck with the default permalink settings, dont judge me, LOL. It was my first attempt to do a WP site.

    Basically, I dont want that chaos/content page, which is just an ugly archive of my posts on the site, to be viewable by the public. If they do navigate to chaos/content, I want them automatically redirected to chaos/content/?page_id=9

    Hopefully I explained that well enough. I would imagine there is a line of code I can add to the .htaccess file in my Word Press root folder, but Im not sure how to safely edit that file without screwing up my whole site. Any suggestions are welcomed and appreciated. Thank you in advance!

  2. Samuel B
    moderator
    Posted 2 years ago #

  3. jared.novak
    Member
    Posted 2 years ago #

    Thank you sir, I will give this a try. Appreciate the response.

  4. jared.novak
    Member
    Posted 2 years ago #

    Worked like a charm, thank you!

Topic Closed

This topic has been closed to new replies.

About this Topic