Redirect root folder to desired homepage
-
Hello everyone,
I have a Word Press site with the .com url directed at my homepage.
https://www.productofchaos.com
will take you to
https://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
https://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!
- The topic ‘Redirect root folder to desired homepage’ is closed to new replies.