Jump to content

mod rewrite


wemustdesign

Recommended Posts

I have created a .htaccess file to shorten my url's. Works fine but cannot get the query string to pass to my page. The original url was

 

index.php?uk=North_East

 

after mod rewrite

?uk/North_East

 

.htaccess file:

Options +FollowSymLinks

RewriteEngine on

RewriteRule index/uk/(.*) index.php?uk=$1

 

and to get the query string I am using:

$region= $_GET['uk'];

 

Any ideas what I am doing wrong?

Link to comment
https://forums.phpfreaks.com/topic/152845-mod-rewrite/
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.