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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.