how to do this

Discuss practical ways rearrange URLs using mod_rewrite.

how to do this

Postby sarahbaran » Mon Sep 01, 2008 11:42 pm

hi all,
i'm new with M_D,
i have this url: ... ject=Benicàssim&RegionName=Costa%20del%20Azahar&RefPicture=
how can i change that for something like this:
3 of the vars of url are:
i mean:
NRef without % symbols
thanks a lot
Posts: 2
Joined: Mon Sep 01, 2008 11:16 pm

Postby richardk » Tue Sep 02, 2008 11:54 am

Do any of the other parameters change? Mod_rewrite can't fill in the missing parameters.

Code: Select all
Options +FollowSymLinks

RewriteEngine On

RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^([^/]+)/([^/]+)/([a-z0-9\.]+)/?$ /detail.php?CountryName=$1&RegionName=$2&Nref=$3&LanguageCode=es&PlaceObject=Benicàssim&RefPicture= [QSA,L]
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 4 guests