Home > Modification, PHP > Quick Mod-rewrite & Php Fix

Quick Mod-rewrite & Php Fix

October 28th, 2011

Please dont bid until we talk in PMB. Dont copy and paste your company sales letter to me.

The issue is that when I access my mod-rewritten URLs, they arent able to capture/echo the extra URL parameters that I use in the URL.

Here is the mod rewrite:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^page/([^_]*).html$ page/index.php?a=$1 [L]

RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

The mod-rewrite works perfectly, but When I goto www.domain.com/page/something.html?word=duck&sound=quak

and use <?php echo($_GET["word"])?> & <?php echo($_GET["sound"])?> It doesnt echo it in the PHP page.


Quick Mod-rewrite & Php Fix

Categories: Modification, PHP Tags: , , , , , ,
Comments are closed.
Bear