|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi, I've got a custom error message on my site:
http://www.min-eng.com/mei404.html and I have the following line in my htaccess file: ErrorDocument 404 /mei404.html and my question is: how do I get this message to work properly in my sub-directories? If you click on this link you will see that the links are not displaying properly: http://www.min-eng.com/jobs/22.html Also, is it possible to have a completely different error message in different sub-directories? Thanks for any help. Amanda
__________________
www.min-eng.com |
|
|||
|
Hi,
I think your problem is with using relative url's for your page links. I had a smiliar problem a few months ago and replacing these with absolute urls seemed to cure it Mike
__________________
Change is inevitable....except from vending machines |
|
|||
|
Hi Mike, do you mean the URL's in the links on my error page, on the htaccess file or on my whole site in general!
Thanks for the help, Amanda
__________________
www.min-eng.com |
|
||||
|
Hi Amanda,
I don't think the problem you have here is actually a 404 problem at all. The 404 page works on all levels of your site... what doesn't work is the referencing of navigation links. You could try using a base href tag for your pages.. any page that is deeper than the root would have http://www.yourdomain/foldername/ as its base href... do you get my drift? How do you currently go about adding new pages? Do you use the same template for the whole site? Hope to hear from you soon, Paul |
|
|||
|
Yeah should've explained myself a bit better, as paulhiles says the problem is when your custom 404 page loads it can't find the images etc needed to load the page correctly when it gets deeper into the site. The solution I used was to put in the absolute url to all images etc eg http://www.yoursite.com/images/image1.gif instead of images/image1.gif. There may be a better solution, this just works for me
Mike
__________________
Change is inevitable....except from vending machines |
|
|||
|
Great!
Thanks guys, that's sorted out the problem just fine.
__________________
www.min-eng.com |
|
|||
|
Sorry Paul, I forgot to answer your question about templates.
In each sub-directory I use the last page to be added, eg www.min-eng.com/biotechnology/24.html, as a template for the next page, ie www.min-eng.com/biotechnology/25.html. Then I just change the information between my and comments. Amanda
__________________
www.min-eng.com |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |