3
Contributors
4
Replies
5
Views
7 Years
Discussion Span
Last Post by muralikalpana
0

The following link will give you an idea about friendly urls:

http://agachi.name/weblog/archives/2005/01/30/rewriting-dynamic-urls-into-friendly-urls.htm

ok....actually my problem is it is working fine. here is my htaccess code

actual url:
http://localhost/flowerstore/flowerdep.php?departmentname=ELFORA
htaccess url:http://localhost/flowerstore/ELFORA
RewriteRule ^([a-zA-Z0-9_-]+)$ flowerdep.php?departmentname=$1 [NC]

working fine above one. but when i am giving "ELFORA" is like "E LFORA" then occuring problem. so how to restrict space in the above .htaccess rule

0

can i use same type of htaccess.
for example...i have categories,brands in leftpanel of my webpage.

this is for categories.
RewriteRule ^([a-zA-Z0-9_-]+[^.]+)$ cat_product.php?name=$1 [NC]
and next i am using same to brands also...it is not working.it is redirecting to cat_products.php.
RewriteRule ^([a-zA-Z0-9_-]+[^.]+)$ brand_product.php?bname=$1 [NC]
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.