Noob question regarding htaccess errordocuments and mod_rewrite ($5 prize)

Discussion in 'Site & Server Administration' started by Sn@Ke, Jan 13, 2011.

  1. #1
    I've lost my patience with my .htaccess and need a hand.

    I have a url that looks like this:
    mysite.com/folder/folder2/file.php?id=something

    I want to look like this:
    mysite.com/folder/folder2/something

    I can rewrite it like this:
    RewriteRule BLANK/(.*)/$ /folder1/folder2/file.php?id=$1

    I want the BLANK gone...

    First person to reply with a correct answer, I will paypal $5 for their effort~

    The .htaccess file is in the root directory, running hostgator. It has a heap of 301 redirects etc that all work, so the htaccess itself is working, I just don't know correct syntax.


    EDIT: got the errordocument working fine.
     
    Last edited: Jan 13, 2011
    Sn@Ke, Jan 13, 2011 IP