• 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

404.php Over-riding .htaccess

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 › 404.php Over-riding .htaccess

This topic is: not resolved

Tagged: 404, htaccess, redirect

  • This topic has 1 reply, 1 voice, and was last updated 9 years, 11 months ago by swansonwc.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • October 3, 2013 at 2:10 pm #65246
    swansonwc
    Member

    Hi,

    I upgraded our site (http://kellyswanson.net) from a custom Coldfusion site, to a WordPress site. I'm using Genesis 2.0.1, Streamline Child Theme 2.0.1, and WordPress 3.6.1.

    I entered a bunch of 301 rewrites in the .htaccess file, but most of them are not working. I called my webhost about the issue, and the level 2 tech I spoke with said that the 404.php page (public_html/wp-content/themes/genesis/404.php) was overriding the .htaccess page.

    Here's the related code (as far as I can tell) from the .htaccess file - there is more code in the .htaccess file from the W3TC plugin. Please let me know if you need to see the whole file.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    
    # END WordPress
    
    Redirect 301 /index.cfm/hurl/idsPageID=1/Funny-Motivational-Speaker-Kelly-Swanson-Home-Page http://kellyswanson.net
    Redirect 301 /index.cfm http://kellyswanson.net
    Redirect 301 /index.cfm/hurl/idsPageID=4/Type=0/Kelly-Swanson-Calendar-of-Events-Open-to-the-Public http://kellyswanson.net
    Redirect 301 /index.cfm/hurl/idsPageID=16/Type=2/Clear_Skin_3.swf http://kellyswanson.net/seehear/motivational-speaker-videos/
    Redirect 301 /index.cfm/hurl/idsPageID=290/Type=/Comedy-Writing http://kellyswanson.net/comedian/
    Redirect 301 /index.cfm/hurl/idsPageID=50/Church-Programs http://kellyswanson.net

    I took out all of the redirects that I originally entered in the .htaccess file and I entered the ones above to try and troubleshoot the issue. The first two redirect work, the rest go to a 404 page.

    I've also tried the 301 Simple Redirects plugin, but it doesn't see to make any difference.

    I've been struggling with this most of the day, and I'd appreciate any help.

    Best regards,
    Bill

    http://kellyswanson.net
    October 7, 2013 at 3:03 pm #65711
    swansonwc
    Member

    I figured out the problem. The index.cfm on the second line overrode all of the lines below. I've moved it to the bottom, and all redirects are working now.

  • Author
    Posts
Viewing 2 posts - 1 through 2 (of 2 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

© 2023 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