Click to See Complete Forum and Search --> : htaccess


resullivan
04-11-2005, 02:00 PM
RewriteEngine on
RewriteRule ^([^/]+).([^/]+).([^/]+)\.html$ catalogs.php?desc=$2&return=$1&page=$3

I really do not know much about this but I threw this together from what I could find on the board. This is not working can someone tell me what is wrong.

I want it to beable to put like z.automatic.0.html or if it is possible zautomatic0.html

is there a link that someone can give me on how to parse this correctly? Obviously that is what is wrong I just do not know how to parse it. the first letter which is $1 is only 1 char long and the last number could be 1 or 2 char long but if that is a problem it can be 1 char long.

resullivan
04-11-2005, 04:23 PM
I figured it out

RewriteEngine on
RewriteRule ^(.)([^/]+)(.)\.html$ catalogs.php?desc=$2&return=$1&page=$3