Results 1 to 2 of 2
  1. #1

    Question ReWrite Engine + Trailing Slashes

    Hey guys,

    I'm using the code below to do some simple URL redirect/masking, but it doesn't work if the URL has a trailing slash. Is it possible to re-write this so that it allows a trailing slash or not? Please advise.

    RewriteEngine on
    RewriteRule ^fakepath/(.*) realpath/index.php?id=$1

    Thanks for your time,
    Jon Marus

  2. #2
    I'm quite new to mod_rewrite myself, and so far all I've been doing is something like
    RewriteEngine on
    RewriteRule ^fakepath/(.*) realpath/index.php?id=$1
    RewriteRule ^fakepath/(.*)/ realpath/index.php?id=$1
    It's not very helpfull - but hopefully it works for now.
    * Best Web Hosting - Submit your host to our directory and become one of our top 10 web hosts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts