mod_rewrite Problem.

New to mod_rewrite? This is a good place to start.

mod_rewrite Problem.

Postby pudge1 » Sun Sep 20, 2009 3:54 pm

RewriteEngine
RewriteRule ^/([a-zA-Z0-9\-\ ]+)/([a-zA-Z0-9\-\ ]+)/([a-zA-Z0-9\-\ ]+).php$ /$1/$2/$3.php?game=$2&system=$1 [NC]

Can anyone tell me why this doesn't work?
pudge1
 
Posts: 1
Joined: Sun Sep 20, 2009 3:51 pm

Postby richardk » Mon Sep 21, 2009 10:25 am

You just want to add game and system?

Try
Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteRule ^([-a-z0-9]+)/([-a-z0-9]+)/[-a-z0-9]+\.php$ /$0?system=$1&game=$2 [NC,QSA,L]
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 22 guests

cron