voyde Posted September 3, 2007 Share Posted September 3, 2007 I got most of it, however when it comes to a file name i am having some problems... .htaccess: Options +FollowSymLinks RewriteEngine On rewriteRule ^([A-Za-z]+)/?$ index.php?p=$1 [L] rewriteRule ^([A-Za-z]+)-([A-Za-z]+)/?$ index.php?p=$1&type=$2 [L] rewriteRule ^([A-Za-z]+)-([A-Za-z]+)/([*.])$ index.php?p=$1&type=$2&file=$3 [L] The url used to look like: http://www.thesite.com/p=page&type=images&file=file.RAR with the above mod_rewrite: http://www.thesite.com/page-images/ but when i need to put a file in... http://www.thesite.com/page-images/file.RAR page not found or file missing. i need the full file name but cant figure it out. thanks. (P.S I have searched google high and low) Quote Link to comment Share on other sites More sharing options...
btherl Posted September 3, 2007 Share Posted September 3, 2007 You might want to keep a RewriteLog Quote Link to comment Share on other sites More sharing options...
hackerkts Posted September 3, 2007 Share Posted September 3, 2007 How about using (.*) for your $3? Not sure if it's the same effect.. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.