#
# Breakdown of the regex:
# ([A-Za-z0-9-/]+\.php) - any php script
# ((\?.*)|()) - with or without a query string
#
# replace it with the following:
#   If there is a querystring:     /phpdir/script.php?querystring
#  if there is no querystring:    /phpdir/script.php
#
 
  RewriteRule ^/([A-Za-z0-9-/]+\.php)((\?.+)|())$ /phpdir/$1$2 [L]
 

Last edited Aug 14, 2008 at 9:25 PM by Cheeso, version 3

Comments

No comments yet.