hi,
I am having some trouble with my .htaccess rewrite rule.
This is my current url:
http://www.telecombydesign.ca/Welcome/0/0/0/
It works perfectly.
The problem is, I want to remove the 0 (zeros), but when I do, it obviously doesn’t like that.
In other words, the 0 (zero) means no data for that specific parameter. I want to be able to not show the 0 if there isnt any data.
e.g:
http://www.telecombydesign.ca/Welcome/0/0/0/ should be
http://www.telecombydesign.ca/Welcome/
OR
http://www.telecombydesign.ca/Products/ … %20Data/0/ should be
http://www.telecombydesign.ca/Products/ … 0-%20Data/
Here is my .htaccess rewrite rule:
RewriteEngine on // - you are starting rewrite mod
RewriteBase / // - you set the rewrite base
rewriterule ^([^.]+)/([^.]+)/([^.]+)/([^.]+)/$ display_pages.php?mid=$1&smid=$2&ssmid=$3&pid=$4 [L]
thanks