Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
Thread: Coding .htaccess
01-23-2005, 08:06 PM #1
- Join Date
- Jan 2005
- Thanked 0 Times in 0 Posts
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" />
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
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,
PS : as you can guess, english is not my mother language, so sorry if I'm not very clear...