+ Reply to Thread
Results 1 to 6 of 6

Thread: Please help!!! .htaccess for permalink

  1. #1
    roelpaulo93's Avatar
    roelpaulo93 is offline x10Hosting Member roelpaulo93 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    17

    Please help!!! .htaccess for permalink

    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-ti...e-article.html

    Not like this...

    http://roelpaulo.tk?article=1

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

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Please help!!! .htaccess for permalink

    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.
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: Please help!!! .htaccess for permalink

    Also, try this page if you want to generate .htaccess
    This is a .htaccess generator
    But do this once you checked what I said in my previous post.
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  4. #4
    roelpaulo93's Avatar
    roelpaulo93 is offline x10Hosting Member roelpaulo93 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    17

    Re: Please help!!! .htaccess for permalink

    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.

  5. #5
    descalzo's Avatar
    descalzo is offline Grim Squeaker descalzo has a brilliant futuredescalzo has a brilliant futuredescalzo has a brilliant future
    Join Date
    Jul 2009
    Location
    Ankh-Morpork
    Posts
    7,636

    Re: Please help!!! .htaccess for permalink

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^article/(.*)/(.*) index.php?article=$1&alias=$2 [L]
    If it just has this, does it throw the error?
    Nothing is always absolutely so.

  6. #6
    roelpaulo93's Avatar
    roelpaulo93 is offline x10Hosting Member roelpaulo93 is an unknown quantity at this point
    Join Date
    Jan 2011
    Posts
    17

    Re: Please help!!! .htaccess for permalink

    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-...s-level-3.html.

+ Reply to Thread

Similar Threads

  1. Replies: 5
    Last Post: 04-18-2011, 07:52 AM
  2. .htaccess
    By meykuh54 in forum Free Hosting
    Replies: 1
    Last Post: 11-11-2010, 05:40 AM
  3. .htaccess
    By ittech052 in forum Free Hosting
    Replies: 1
    Last Post: 10-18-2010, 07:59 AM
  4. htaccess help
    By pirata7z in forum Free Hosting
    Replies: 2
    Last Post: 12-14-2007, 07:09 PM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers