Redirects Not Working!

Status
Not open for further replies.

habbofm101

New Member
Messages
29
Reaction score
0
Points
0
Whenever I add a re-direct in my cpanel, it doesn't add and says error and this is the message I get:
Apache detected an error in the Rewrite config.
httpd: Syntax error on line 13 of /home/habbofm/public_html/.htaccess.x7C9C_GfHi_oVPJ6k7uLz3uIuZpIAa7U: RewriteCond without matching RewriteCond section
Please try again.

Help!
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Post the current contents of .htaccess
 

calistoy

Free Support Volunteer
Community Support
Messages
5,602
Reaction score
87
Points
48
When you go into your file manager in your cPanel, make sure you check that box to show all hidden files before you proceed. You should be able to find it inside the file manager after that.
 

habbofm101

New Member
Messages
29
Reaction score
0
Points
0
When you go into your file manager in your cPanel, make sure you check that box to show all hidden files before you proceed. You should be able to find it inside the file manager after that.


Thanks, it contains the following:
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !=/favicon.ico

RewriteRule ^(.*)(\.)(.*)$ index.php?url=$1.$3 [L,QSA]
RewriteRule ^ajax$ _res/ajax.php [QSA]
#RewriteRule ^(.*)$ index.php?t=$1 [L,QSA]
</IfModule>
 
Status
Not open for further replies.
Top