View Full Version : Please, help me with my mod-rewrite
pierrebenoit
02-03-2005, 07:52 AM
Please,
I really need help with my mod-rewrite. I download a dynamic template (You can find a copy here http://personalized-gifts.cyber-catalog.com/template/jds.zip) but was unable to build a mod-rewrite (2-3 weeks now). Everything I tried didn't work.
This is an example of code:
__________________________________________________ _______________
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.cyber-catalog\.com
RewriteRule ^/items/([A-Za-z]+)/$ /gifts.php?items=$1
RewriteRule ^/pid/([0-9]+)/$ /product.php?pid=$1
RewriteRule ^/items/([0-9]+)/start/([0-9]+)/limit/([0-9]+)/$ /gifts.php?items=$1&start=$2&limit=$3
RewriteRule ^/start/([0-9]+)/limit/([0-9]+)/$ /productlist.php?start=$1&limit=$2
__________________________________________________ _______________
Please, can you help me? I really need help
Thanks
Emancipator
02-03-2005, 07:57 AM
what is your url and what are you trying to make it. I will post you a solution pronto :)
pierrebenoit
02-03-2005, 09:29 AM
The URL is http://personalized-gifts.cyber-catalog.com
I would like to have URL friendly page:
Before: http://personalized-gifts.cyber-catalog.com/gifts.php?items=Bar+Gear
After: http://personalized-gifts.cyber-catalog.com/gifts.php/items/Bar+Gear
or
After: http://personalized-gifts.cyber-catalog.com/items/Bar_Gear
or
After: http://personalized-gifts.cyber-catalog.com/items/Bar+Gear
__________________________________________________ ____________
Before:http://personalized-gifts.cyber-catalog.com/product.php?pid=453498221
After:http://personalized-gifts.cyber-catalog.com/product.php/pid/453498221
or
After:http://personalized-gifts.cyber-catalog.com/pid/453498221
__________________________________________________ ______________
Before:http://personalized-gifts.cyber-catalog.com/gifts.php?items=Executive+Gifts&start=8&limit=8
After:http://personalized-gifts.cyber-catalog.com/items/Executive+Gifts/start/8/limit/8
or
After:http://personalized-gifts.cyber-catalog.com/items/Executive_Gifts/start/8/limit/8
or
After:http://personalized-gifts.cyber-catalog.com/items/Executive_Gifts/start/8/limit/8
__________________________________________________ ______________
Before:http://personalized-gifts.cyber-catalog.com/gifts.php?items=%2430.00+and+Under&start=8&limit=8
After:http://personalized-gifts.cyber-catalog.com/items/2430.00+and+Under/start/8/limit/8
____________________________
But I am opened to other suggestions.
I really want to remove all xxx.php?xxx in the url
Thanks
Emancipator
02-03-2005, 10:21 AM
ok im confused you want to use + between the names? Why not go with dashes or just nice simple urls.
I know people will say the name in the url means the world, but ive never had a problem NOT putting it in the url and doing just fine. Why not just make the simplest easiest url possible?
pierrebenoit
02-03-2005, 03:42 PM
ok im confused you want to use + between the names? Why not go with dashes or just nice simple urls.
It is not a definitive choice. I was thinking that it is simple to translate that way...
I know people will say the name in the url means the world, but ive never had a problem NOT putting it in the url and doing just fine. Why not just make the simplest easiest url possible?
Please, do what you want! The only think I really need is a friendly URL
Thanks
ordinary_guy
02-04-2005, 04:14 AM
Does your problem been resolved ?
pierrebenoit
02-04-2005, 07:21 AM
Does your problem been resolved ?
Not yet! I still need your help.
I have the template, the datafeed... but no mod-rewrite
Thanks for all to help me
pierrebenoit
02-14-2005, 04:28 AM
I resolved my problems
Powered by vBulletin® Version 4.2.2 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.