0
Welcome Guest! Login
0 items Join Now

Redirect vs Gantry custom error page

    • JimmyDT's Avatar
    • JimmyDT
    • Jr. Rocketeer
    • Posts: 45
    • Thanks: 1

    Redirect vs Gantry custom error page

    Posted 1 year 5 months ago
    • Hi,

      Rather than using the Gantry custom error page, I would just like to redirect to the site's home page.
      However, even after adding the following line to .htaccess, the gantry custom error page is displayed.

      ErrorDocument 404 /index.html
      Do I need to disable the gantry custom error page somehow to be able to redirect on 404?

      Thanks.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Redirect vs Gantry custom error page

    Posted 1 year 5 months ago
    • JimmyDT's Avatar
    • JimmyDT
    • Jr. Rocketeer
    • Posts: 45
    • Thanks: 1

    Re: Redirect vs Gantry custom error page

    Posted 1 year 5 months ago
    • Thanks;

      I tried to implement the approach in the stack overflow article you suggested, but it made no difference; the gantry error page is still shown.

      I tried to add the whole

      <IfModule mod_rewrite.c>
      RewriteEngine on
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ / [L,QSA]
      </IfModule>

      Before or after the existing <IfModule mod_rewrite.c> block in the .htaccess; I also tried inserting

      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteCond %{REQUEST_FILENAME} !-d
      RewriteRule ^(.*)$ / [L,QSA]

      inside the existing <IfModule mod_rewrite.c> block (after "## End - Custom redirects"); in all three cases, the gantry error page is still shown.
    • MrT's Avatar
    • MrT
    • Preeminent Rocketeer
    • Posts: 101084
    • Thanks: 13481
    • Web Designer/Developer

    Re: Redirect vs Gantry custom error page

    Posted 1 year 5 months ago
    • Then sorry but I am out of ideas.

      Regards, Mark.
    • Please search forums before posting. Please make sure your post includes the version of the CMS you are using and a link to the problem. Annotations on screenshots can also be helpful to explain problems/goals. Please use the "secure" tab for confidential information.

Time to create page: 0.050 seconds