• 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 redirects to home page when url has ? mark

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 redirects to home page when url has ? mark

This topic is: not resolved

Tagged: 404, custom permalinks, redirection to home page

  • This topic has 7 replies, 2 voices, and was last updated 10 years, 1 month ago by thisissripriya.
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • July 31, 2013 at 8:27 am #53383
    thisissripriya
    Member

    Hi,
    We have a wordpress website which uses the custom permalinks plugin. When I access a non-existent page on the site such as http://www.xyz.com/abcd, I get the 404 page. However, if I have a "?" (question mark) in the url as in http://www.xyz.com/?abcd, it gets redirected to the home page instead of showing me the 404 page. Could anyone please tell me if there is some way to prevent the redirection to home page, when the url contains "?" and the page is not found on the server?
    Thank you.

    July 31, 2013 at 8:31 am #53385
    Anita
    Keymaster

    What is the actual URL of your website so we can see your code please.


    Love coffee, chocolate and my Bella!

    July 31, 2013 at 8:39 am #53386
    thisissripriya
    Member

    Actual url is http://www.nriol.net

    July 31, 2013 at 8:43 am #53387
    Anita
    Keymaster

    You are using SEO Ultimate - look inside there for 404 redirects. If they have settings for that, then create a redirect for it. I know a log of people are using the Yoast SEO plugin and there are redirect settings in there.


    Love coffee, chocolate and my Bella!

    July 31, 2013 at 9:00 am #53390
    thisissripriya
    Member

    Thank you. I tried disabling the SEO Ultimate plugin to see if that was causing the issue. The non-existent url with "?' in it still redirected to the home page even when the SEO Ultimate plugin was disabled.

    July 31, 2013 at 9:11 am #53392
    Anita
    Keymaster

    You misread what I wrote. I didn't say to disable the plugin, I said to check the plugin to see if there is a 404 Redirect function in there that you can set. Yoast has redirects built into it.


    Love coffee, chocolate and my Bella!

    July 31, 2013 at 9:13 am #53393
    Anita
    Keymaster

    I did a search for you on Google - read some of these - http://goo.gl/SCt6Fy


    Love coffee, chocolate and my Bella!

    August 1, 2013 at 3:06 am #53516
    thisissripriya
    Member

    Thank you. I checked the available settings / functions in SEO Ultimate and there was no 404 redirection available.
    I'm just checking the other plugins in the site to see if any of them have some function which redirects to home page.

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