Code: Select all
RewriteEngine on
RewriteRule ^([A-Za-z0-9._%-]+)/?$ /index.php?pageLoader=true&cmd=$1Moderator: General Moderators
Code: Select all
RewriteEngine on
RewriteRule ^([A-Za-z0-9._%-]+)/?$ /index.php?pageLoader=true&cmd=$1Code: Select all
RewriteEngine on
RewriteRule ^(.+)/?$ /index.php?pageLoader=true&cmd=$1Hmm... are you sure the post vars will be sent... you can't GET and POST at the same time, or can you if it's an internal Apache request instead of an HTTP redirect?Everah wrote:Post vars are going to be sent. You just need to check for them. And if you are accepting any url past / to be redirected, then a simpler regex could be...
Yes, I'm sure. Let say you post a form with the following action: formpost.php?issent=1. Whatever the form posts is getting sent by $_POST, plus there is the $_GET['issent'] var. I know this because I am using this on a mod_rewrite'ed app I just developed. Everything get's throw through page.php?p=somepagename. Form posts still post to that query stringed page.Robert Plank wrote:Hmm... are you sure the post vars will be sent... you can't GET and POST at the same time, or can you if it's an internal Apache request instead of an HTTP redirect?Everah wrote:Post vars are going to be sent. You just need to check for them. And if you are accepting any url past / to be redirected, then a simpler regex could be...