Jump to content

Url Rewrite Problem


chmpdog

Recommended Posts

Hey my code is below for my .htaccess file, but I am having a problem.

 

The first rewrite works, but when I try to do the second one with the additional $_GET I cant use id in my code.

 

How do I fix this? Thanks

<IfModule mod_rewrite.c>  
RewriteEngine On  
RewriteBase /site/
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*).html$ /site/index.php?hello=$1
RewriteRule (.*).html?id=(.*)$ /site/index.php?hello=$1&id=$2
</IfModule>  

Link to comment
https://forums.phpfreaks.com/topic/152011-url-rewrite-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.