Re: [users@httpd] mod_rewrite help request

2014-04-01 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 04/01/2014 06:48 PM, Michael Streeter wrote: > Try this: RewriteEngine on RewriteCond %{QUERY_STRING} page=(.*) > RewriteRule ^(.*)$ http://www.example.com/%1? [R,L] > Thank you. That worked a peach. - -- James Moe moe dot james at sohnen-moe

Re: [users@httpd] mod_rewrite help request

2014-04-01 Thread Michael Streeter
On 4/1/2014 1:15 PM, James Moe wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have changed the way a website refers to page in the URL. The old method was odd, useless and unnecessarily complicated. I wish to have rewrite rule that changes http://www.example.com/?page=somep

[users@httpd] mod_rewrite help request

2014-04-01 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, I have changed the way a website refers to page in the URL. The old method was odd, useless and unnecessarily complicated. I wish to have rewrite rule that changes http://www.example.com/?page=somepage.php to http://www.example.com/somepage