Cannot enable HotLink protection

Status
Not open for further replies.

rinoarikku90

New Member
Messages
10
Reaction score
0
Points
0
I wanna enable Hotlink protection, but it shows an error:
Apache detected an error in the Rewrite config.
httpd: Syntax error on line 10 of /home/meteor/public_html/.htaccess.Q3eAcIx5EjDAiLjBHx1P19Yb7MIi8M34: RewriteCond without matching RewriteCond sectionPlease try again.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Can you post what your current .htaccess looks like?

Also, how are you filling in the protection page?
 

rinoarikku90

New Member
Messages
10
Reaction score
0
Points
0
.htaccess file
Code:
							<IfModule mod_rewrite.c>
								RewriteEngine on
								RewriteCond %{REQUEST_FILENAME} !-f
								RewriteCond %{REQUEST_FILENAME} !-d
								RewriteBase /
								RewriteRule ^(post|record|sort|author|page)-([0-9]+)\.html$ index.php?$1=$2
								RewriteRule ^tag-(.+)\.html$ index.php?tag=$1
								RewriteRule ^t/page-([0-9]+)\.html$ t/index.php?page=$1
							</IfModule>


I just want to use default links
hotlink.jpg
 

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello can you please try disabling the rewrite module and re-enabling it.
 

rinoarikku90

New Member
Messages
10
Reaction score
0
Points
0
hello do you mean this line
Code:
RewriteEngine on
change to
Code:
RewriteEngine off
?

modified the .htaccess file and upload it?
then what?
 
Last edited:

Jarryd

Community Advocate
Community Support
Messages
5,534
Reaction score
43
Points
48
Hello,

Then check if your website works.
 

rinoarikku90

New Member
Messages
10
Reaction score
0
Points
0
yep, my website works perfectly, but i still cannot enable hotlink protection, its the same error.

now the .htaccess file content is
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteBase /
RewriteRule ^(post|record|sort|author|page)-([0-9]+)\.html$ index.php?$1=$2
RewriteRule ^tag-(.+)\.html$ index.php?tag=$1
RewriteRule ^t/page-([0-9]+)\.html$ t/index.php?page=$1
</IfModule>
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
RewriteEngine on
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(post|record|sort|author|page)-([0-9]+)\.html$ index.php?$1=$2
RewriteRule ^tag-(.+)\.html$ index.php?tag=$1
RewriteRule ^t/page-([0-9]+)\.html$ t/index.php?page=$1
 
RewriteCond %{HTTP_REFERER} !^http://loverena.x10.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://loverena.x10.com$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.loverena.x10.com/.*$      [NC]
RewriteCond %{HTTP_REFERER} !^http://www.loverena.x10.com$      [NC]
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ - [F,NC]
 
Status
Not open for further replies.
Top