• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

301 redirect for 404 page problem

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › 301 redirect for 404 page problem

This topic is: not resolved

Tagged: 301 redirect, 404 page, htacess file help

  • This topic has 3 replies, 2 voices, and was last updated 12 years, 9 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • March 7, 2013 at 4:31 pm #24879
    fotodog13
    Participant

    Long story short.
    I have site that was built on the temp url
    69.195.124.84/~aielloen/hes/

    I moved the site out of the root.
    The old address is coming up in google.
    tried using 301 simple redirects and the redirection plugin to solve the problem with no luck/
    Wondering a couple of things
    1. will a change be instant
    2. should I add the following code to the sites htaccess file

    RewriteRule ^$ http://my-domain/ [R=301,L]
    and if so where in htaccess file do I place this?

    here's a copy of the current htaccss file info

    # BEGIN WordPress

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    3. is my thinking correct- is this going to solve my problem.As always thanks to anyone that can give me some advice- I appreciate the help.

    Best

    Scott V

    * don't think you should need ot but never know here is theĀ  site url aielloenergy.com
    using the latest copies of wordpress, genesis, and theme, etc.

    March 7, 2013 at 6:01 pm #24894
    Brad Dalton
    Participant

    Did you do a search, find and replace on all url's and file paths before changing locations?

    What i do is install the WP Migrate DB plugin and enter in the new details then export the database for import into a newly created DB. (this changes all the file paths and url's so you don't suffer from broken links)

    Then move the files to the new location. No broken links and works perfectly every time.

    Redirection is an excellent plugin for managing redirection's in WordPress and fixing broken links however it does use server resources.

    Your host will help you with .htaccess file code otherwise find one that does.


    Tutorials for StudioPress Themes.

    March 8, 2013 at 6:19 am #24971
    fotodog13
    Participant

    Hey Brad,

    Thanks for the reply. I usually work in the same fashion you are mentioning above, in this instance things got screwed up when the client uploaded something and got poking around. They saw that I had the " do not let the search engines index the site" checked off and the site got indexed on the temporary build that was not in the root.
    The site has no broken links the only problem I have found is that the temp build page is coming up in the search returns.
    I thought I might be able to solve this by using redirection plugin, or creating a 301 redirect with a plugin but that didn't do it, so looks like I need to talk to the host about the .htaccess code file.

    March 8, 2013 at 4:04 pm #25056
    Brad Dalton
    Participant

    It should drop off at some stage if it keeps returning 404.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2025 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble