Go Back   CodingForums.com > :: Server side development > Apache configuration

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-12-2004, 10:39 AM   PM User | #1
finsklapphundkl
New to the CF scene

 
Join Date: Oct 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
finsklapphundkl is an unknown quantity at this point
htaccess

Hello

I use htaccess for passwordprotection and error-pages.
This is what Ive adden in the htaccess-file:
ErrorDocument 401 /Feilmeldinger/ForbeholdtmedlemmerFLK.htm

But I have a strange problem. When somebody wants to access access a passwordprotected page without a password the htaccess-file redirects them to:

Errorpage

If you visit this url directly a nice picture shows up. But when the htaccess-file sends a user to this page the picture dissappears...
So the htaccess-file "does" it job, but wheres the picture?

Just try this, and you will see what I mean:
Try this
finsklapphundkl is offline   Reply With Quote
Old 10-12-2004, 11:12 AM   PM User | #2
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
You#ve got the image in the members area. It's not going to show up as the image is protected. Stick the image into another directory outside your members area
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 10-12-2004, 11:21 AM   PM User | #3
finsklapphundkl
New to the CF scene

 
Join Date: Oct 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
finsklapphundkl is an unknown quantity at this point
No, it is not. And to be sure I just moved it to another place. Same problem...
finsklapphundkl is offline   Reply With Quote
Old 10-13-2004, 01:30 PM   PM User | #4
bazz
Master Coder

 
Join Date: Apr 2003
Location: in my house
Posts: 5,211
Thanks: 39
Thanked 201 Times in 197 Posts
bazz will become famous soon enoughbazz will become famous soon enough
It seems to me that the two pages linked to above, are different. one is at a dfferent level than the other. Try adding ../ to the local url of one of the pages or use an absolute url.

my 2p

bazz
__________________
"The day you stop learning is the day you become obsolete"! - my late Dad.

Why do some people say "I don't know for sure"? If they don't know for sure then, they don't know!
Useful MySQL resource
Useful MySQL link
bazz is offline   Reply With Quote
Old 10-13-2004, 03:36 PM   PM User | #5
finsklapphundkl
New to the CF scene

 
Join Date: Oct 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
finsklapphundkl is an unknown quantity at this point
Here is my "structure":
My errorpages are placed at:
http://www.finsklapphundklubb.org/Feilmeldinger/(To pages here, see below)
while the "membersarea" (which is passwordprotected) is at:
http://www.finsklapphundklubb.org/Medlemssider/(Several directories under here)

So Ive placed a htaccess-file here:
http://www.finsklapphundklubb.org/Medlemssider/.htacess
and the htpasswd-file under:
http://www.finsklapphundklubb.org/.htpasswd

This is the lines in the htaccess-file:
ErrorDocument 401 /Feilmeldinger/ForbeholdtmedlemmerFLK.htm
ErrorDocument 403 /Feilmeldinger/Ikkelov.htm

And everything works just fine, except from the picture....Which I think is a good picture!

Last edited by finsklapphundkl; 10-13-2004 at 03:38 PM..
finsklapphundkl is offline   Reply With Quote
Old 10-13-2004, 04:06 PM   PM User | #6
Nightfire
Senior Coder

 
Nightfire's Avatar
 
Join Date: Jun 2002
Posts: 4,266
Thanks: 6
Thanked 48 Times in 48 Posts
Nightfire is on a distinguished road
On the error page put the FULL url to the image. You have the image pointing to the members area where the image isn't there.

<img src="http://yoursite.com/image/theimagetobeshown">
__________________
Blue Panda
Website Design | 1 Pound Ads | 'ow much? | Coding Geeks
Nightfire is offline   Reply With Quote
Old 10-13-2004, 05:36 PM   PM User | #7
finsklapphundkl
New to the CF scene

 
Join Date: Oct 2004
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
finsklapphundkl is an unknown quantity at this point
Thank you VERY much!!!!!!!!

I think this picture "illustrates" well how a visitor feels when he discovers that he has to be a member if he wants to watch!

Again,
Thank you!!!!
finsklapphundkl is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 03:32 PM.


Advertisement
Log in to turn off these ads.