...

View Full Version : modrewrite rule for urls, need some help



mjs
07-10-2010, 06:39 AM
Hi all,

I wondering if some one help me, and great thanks,

I have URL look like:

http://www.mysite.com/index.php?category=Public+Spaces%2FApartement&pic=CAPITAL-APARTEMENT4

so i just want to change it look like:

http://www.mysite.com/?category=public-spaces&apartement/capital-apartemen4

UPPERCASE to lowercase
index.php? to ?
+ to -
%2F to &
&pic= to /

this is pissible or any anohter great idea?

Regards,

twobyfour
07-10-2010, 07:10 AM
I use this rewrite_url generator. It works for most of my urls

http://www.generateit.net/mod-rewrite/

mjs
07-10-2010, 09:12 PM
I use this rewrite_url generator. It works for most of my urls

http://www.generateit.net/mod-rewrite/

Great link, many thanks

now i get rewrite_url:

RewriteEngine On
RewriteRule ^([^/]*)/([^/]*)\.html$ /index.php?category=$1&pic=$2 [L]

so my url from:

index.php?category=Public+Spaces%2FApartement&pic=CAPITAL-APARTEMENT4

shorted to look like:

Public+Spaces%2FApartement/CAPITAL-APARTEMENT4.html

but it not solved at all, e.g.

UPPERCASE to lowercase
+ to -
%2F to &

any another idea would be appreciate.

Regards,



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum