Please help!!! .htaccess for permalink

roelpaulo93

New Member
Messages
17
Reaction score
0
Points
1
here is my .htaccess file...

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

It says when you click on this -> http://roelpaulo.tk ...

Forbidden

You don't have permission to access / on this server.

Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.

All I wanted was this to show in the URL was this...

http://roelpaulo.tk/article/1/the-title-of-the-article.html

Not like this...

http://roelpaulo.tk?article=1

Any help out there, I'm really confused...
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Just empty the .htaccess file and try again.
If you get the error even then that should not be because of the site..but somewhere else.
Revert back.
 

roelpaulo93

New Member
Messages
17
Reaction score
0
Points
1
I have emptied the file before and my website is working but no permalinks and I put it back again, I get the same error 403. The .htaccess generator site is hard to use. I'd prefer hand coding, thank you. I think the configuration of apache in this server conflicts my .htaccess RewriteRule. I guess I'm gonna have to think of a way and rewrite my .htaccess file and also my PHP. I think, I'm gonna take a look at wordpress.
 

descalzo

Grim Squeaker
Community Support
Messages
9,373
Reaction score
326
Points
83
Code:
RewriteEngine On
RewriteBase /
RewriteRule ^article/(.*)/(.*) index.php?article=$1&alias=$2 [L]

If it just has this, does it throw the error?
 

roelpaulo93

New Member
Messages
17
Reaction score
0
Points
1
Yes, still making error 403. But if I emptied my .htaccess file which means no code in it, my site is working. I really do not know what to do... I'm gonna try uploading wordpress and enabling the permalinks there to see if it throws the same error... Still looking for some help... Thanks.

---------- Post added at 03:33 AM ---------- Previous post was at 02:58 AM ----------

I installed wordpress and the permalinks there worked. I removed wordpress and put back my site again and put my .htaccess file again and amazingly it worked now... I do not know what happened but I'm glad that it is ok now... Take a look at this -> http://roelpaulo.tk/article/2/color-module-in-css-level-3.html.
 
Top