• Hi,

    I am using wordpress latest version 4.9.1 and using gantry framework, rocket theme.

    I have enabled Error Outline from the Theme and when i type some thing in the url – I need to get the unique url

    For Example:
    Our Website is https://www.mywebsite.com/
    We have type wrong url after domain as https://www.mywebsite.com/asdf
    Then it shows the error page from the Error Outline. It is Ok.
    But the error page url always needs to be unique for example:
    https://www.mywebsite.com/asdf should redirect to https://www.mywebsite.com/pagenotfound
    https://www.mywebsite.com/uejdufj should redirect to https://www.mywebsite.com/pagenotfound

    For every invalid url it should be /pagenotfound.

    From my research we find that we can modify the theme 404.php, But we are not having child theme to override the core files.

    If we modify the 404.php file does it gets erased when we update theme.
    (or)
    Do we have any other solution…?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Gantry

    (@gantry)

    Currently overriding WP theme core files like 404.php is only possible via Child Themes. Since you’re not using a child theme maybe you should try using a plugin ie. https://www.ads-software.com/plugins/all-404-redirect-to-homepage/

    I haven’t tested that one but it looks like it has a feature of redirecting 404 requests to a custom url.

    Thread Starter kiranl

    (@kiranl)

    Thanks for your reply,

    Yes, we have seeen this type of plugin.
    While using this plugin, when we enter our custom url in this plugins field.
    It will redirect correctly to our custom url(/page-not-found).
    But we will get “The page isn’t redirecting properly”, not from the error outline.

    We need to create a wordpress page with url(/page-not-found), but how to assign this page to error template in gantry5 to display only header and footer with some 404 content.

    Note: Also can you suggest that when we try to create a child theme, frontend getting blank, not calling anything from parent theme, just Activated from the backend without any error… thats it. No sections from parent theme outlines and frontend getting blank…

    • This reply was modified 7 years, 3 months ago by kiranl.
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Gantry 404 Url’ is closed to new replies.