.htaccess help

roelpaulo93

New Member
Messages
17
Reaction score
0
Points
1
Hey guys, I just built my own CMS, It is written in PHP, I want to create permalinks by using .htaccess files. I've already made my .htaccess in my home server and it is going ok there... but when i put my .htaccess file in the public_html folder it says "FORBIDDEN Erorr 403 you don't have access on "/" on this server". my code in the .htaccess file goes like this:

RewriteEngine On
RewriteBase /
RewriteRule ^article/(.*)/(.*) index.php?article=$1&alias=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I do not know what to do because on my home server it is ok but when i out it here it gives me a 403 error... any help? this is my website: http://roelpaulo.tk. you will see the 403 here...
 
Last edited:

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Check the permissions on public_html . That seems to be the problem.

Do you get the error if you rename .htaccess and try to access /index.php ?
 

roelpaulo93

New Member
Messages
17
Reaction score
0
Points
1
I renamed it and the browser can't locate my website... I deleted my .htaccess file and now Error 500? what is happening? automatically .htacces file will be replaced with an empty one when you delete it. But my price for doing it is Error 500... is there something wrong in the server?
 
Top