Jump to content

Recommended Posts

Posted

I believe if you take the ErrorDocument 404 out of the .htaccess file and name the error document with a .shtml extension you can put the document in the particular folder you want the error to display for.

 

So if you have a 404.shtml in your public_html folder and then want a different one in you sub domain or other folder just create a different 404.shtml file and place it there.

Posted

Alternatively, you can puta different .htaccess into the subdomains folder. That should override the preceding folders .htaccess.

 

So if I wanted to do this, I could have for my main site a .htaccess in public_html that called certain error documents, then a .htaccess in say public_html/lisa (lisa.lisa-jill.com) that would call other error documents.

 

That way you would not be required to stick with the .shtml ending, either. :)

Posted

I thought of Lisas idea but wasnt sure.

You see. you are talking to someone who almost killed the whole site a few days ago cause of some misplaced php. :dance:

 

Thanks Bruce and Lisa. :)

Posted

I've got both PHP and SHTML pages, just in case. There have been a few times that it didn't access the PHP and used the SHTML. I just have a META redirect in the SHTML pages that go to the PHP ones. Haha...

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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