Jump to content

[SOLVED] Keep address bar url when displaying error pages...


Dragen

Recommended Posts

Hi,

okay.. I've got a simple re-direct in my htaccess file for 404 and 403 errors.

ErrorDocument 404 http://www.gimppro.co.uk/error/404.php
ErrorDocument 403 http://www.gimppro.co.uk/error/403.php

 

Is there a way of making it show the error pages on faulty links etc, but still keep the address in the address bar the same?

for example.. If I type in www.mydomain/badlink/

it will re-direct and change the url to www.mydomain/errorpage

but I want it to still say the www.mydomain/badlink/

 

Is this possible?

Thanks

If you have urls to your error documents then Apache will redirect the user to specified url for the error document. If you have paths then Apache will not redirect, keeping the url as it is.

If you have urls to your error documents then Apache will redirect the user to specified url for the error document. If you have paths then Apache will not redirect, keeping the url as it is.

ah thanks! just what I needed.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.