Limerick
01-23-2005, 08:06 PM
Hello all,
I've a website : www.mywebsite.com
From this website, I've a forum which URL is www.mywebsite.com/forum/index.php
As many forums, there's a refresh page after posting or logging... etc .This redirection or Refresh page contains this code which I name "Meta Refresh" (to be more simple).
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="refresh" content="5;URL=http://www.mywebsite.com/forum/index.php" />
But, I want that only people invited to the website (which has a logging page) can access to the forum
So I use the following .htaccess :
SetEnvIfNoCase Referer "^http://www.mywebsite.com/" local_ref=1
Order deny,allow
deny from all
allow from env=local_ref
This works fine, but the "Meta Refresh" code seems to be not accepted by the .htaccess, and so, when appears a redirecting page, I get an Error 403.
But if I click on the proposed link because I don't to wait for the automatic redirection, I have no problem.
This is why I suppose the problem comes from the "Meta Refresh" which seems to be not recognized by the .htaccess.
So my question is : how can I write the .htaccess in order to allow the "Meta Refresh" to be recognized as coming from mywebsite.com ?
Maybe something looking like :
SetEnvIfNoCase Referer "^http://www.mywebsite.com/" local_ref=1
SetEnvIfNoCase Referer "Meta Refresh" local_ref=1
Order deny,allow
deny from all
allow from env=local_ref
Of course, this is not the answer, but it's just to show what I'm looking for...
I don't know anything about coding in general, and about .htaccess in particular, so if someone could help me, it would be very kind.
Thank you very much,
Lim
PS : as you can guess, english is not my mother language, so sorry if I'm not very clear... :o
I've a website : www.mywebsite.com
From this website, I've a forum which URL is www.mywebsite.com/forum/index.php
As many forums, there's a refresh page after posting or logging... etc .This redirection or Refresh page contains this code which I name "Meta Refresh" (to be more simple).
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="refresh" content="5;URL=http://www.mywebsite.com/forum/index.php" />
But, I want that only people invited to the website (which has a logging page) can access to the forum
So I use the following .htaccess :
SetEnvIfNoCase Referer "^http://www.mywebsite.com/" local_ref=1
Order deny,allow
deny from all
allow from env=local_ref
This works fine, but the "Meta Refresh" code seems to be not accepted by the .htaccess, and so, when appears a redirecting page, I get an Error 403.
But if I click on the proposed link because I don't to wait for the automatic redirection, I have no problem.
This is why I suppose the problem comes from the "Meta Refresh" which seems to be not recognized by the .htaccess.
So my question is : how can I write the .htaccess in order to allow the "Meta Refresh" to be recognized as coming from mywebsite.com ?
Maybe something looking like :
SetEnvIfNoCase Referer "^http://www.mywebsite.com/" local_ref=1
SetEnvIfNoCase Referer "Meta Refresh" local_ref=1
Order deny,allow
deny from all
allow from env=local_ref
Of course, this is not the answer, but it's just to show what I'm looking for...
I don't know anything about coding in general, and about .htaccess in particular, so if someone could help me, it would be very kind.
Thank you very much,
Lim
PS : as you can guess, english is not my mother language, so sorry if I'm not very clear... :o