Mod rewrite

Status
Not open for further replies.

AsianX

New Member
Messages
10
Reaction score
0
Points
0
Receiving three errors ( that I know of )

Mod rewrite
enables users to type www.mysite.com/Ghost, Instead of having to type in www.mysite.com/profile.php?ID=7. It should go to the page ( if logged into the site) or will redirect to a register now/log in page. It was working properly before today. Now receiving a 404 and
error reads as

[Thu Sep 11 02:08:46 2008] [error] [client xx.xx.xxx.xxx] File does not exist: /home/asian/public_html/Ghost

.http file reads as follows

# -FrontPage-

IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName yourasianlove.pcriot.com
AuthUserFile /home/asian/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/asian/public_html/_vti_pvt/service.grp

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule .* rewrite_name.php [L]

Also redirects to the forum are throwing error messages in cpanel error logs and on attempting to enable hotlink protection this error

Apache detected an error in the Rewrite config. Syntax error on line 14 of /home/asian/public_html/.htaccess.t3WESrl1_hl6BtBZXEC1sUV4WSTDbdCg:
RewriteCond: bad flag delimiters
Please try again.

cpanel username : asian

site address : http://www.yourasianlove.pcriot.com

not needed Im sure, but 404 page is

http://www.yourasianlove.pcriot.com/Ghost

Thanks,
Charles
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
You were missing the line "RewriteEngine On" before the first RewriteCond.
I've added this to your .htaccess and it's working now, please check it.
 

AsianX

New Member
Messages
10
Reaction score
0
Points
0
Yeah, that did it. Thanks... appreciate the fast response.

Charles.
 

Fedlerner

Former Adm & Team Manager
Community Support
Messages
12,934
Reaction score
6
Points
38
No problem.
Feel free to re-open this thread if you need further assistance.
 
Status
Not open for further replies.
Top