View Single Post
Old 11-18-2005, 01:46 AM  
rml1608
Confirmed User
 
Join Date: Sep 2004
Location: Central IL
Posts: 985
SEO Optimzation - Dynamic Pages coverting to static using .htaccess

Here is my .htaccess :

Options +FollowSymLinks
RewriteEngine on
RewriteRule ^category/([0-9][0-9])$ http://www.domain-name.com/index.php?sbcat_id=$1 [R]
RewriteRule ^category/([0-9][0-9])/$ http://www.domain-name.com/index.php?sbcat_id=$1
RewriteRule ^joke/([0-9][0-9][0-9])$ http://www.domain-name.com/index.php?sbjoke_id=$1 [R]
RewriteRule ^joke/([0-9][0-9][0-9])/$ http://www.domain-name.com/index.php?sbjoke_id=$1

This works perfectly fine - however when I change it to :


Options +FollowSymLinks
RewriteEngine on
RewriteRule ^category/([0-9][0-9])$ http://www.domain-name.com/index.php?sbcat_id=$1 [R]
RewriteRule ^category/([0-9][0-9])/$ http://www.domain-name.com/index.php?sbcat_id=$1
RewriteRule ^joke/([0-9][0-9][0-9][0-9])$ http://www.domain-name.com/index.php?sbjoke_id=$1 [R]
RewriteRule ^joke/([0-9][0-9][0-9][0-9])/$ http://www.domain-name.com/index.php?sbjoke_id=$1

I run into problems ...

I am assuming I can't use [0-10000] etc, al ...

Since I am only running into a problem when adding the 4th digit there has to be a 'programming' reason why, any programmers here have any idea ?
rml1608 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote