URL design question... my Mod rewrite so far

New to mod_rewrite? This is a good place to start.

URL design question... my Mod rewrite so far

Postby rudyten » Wed Nov 30, 2005 12:10 pm

What you thing would be better:
This is what I have at moment...am already using mod-rewrite.

--------------------------------------------------------------------
NOW
www.domain.com?group=artsupplies&cat=beading

www.domain.com/artsupplies/beading.html

--------------------------------------------------------------------
NEXT

www.domain.com&group=artsupplies&cat=be ... ity=oxnard

www.domain.com/artsupplies/beading/usa/ ... xnard.html

or www.domain.com/artsupplies/beading/usa- ... xnard.html


----------------------------------------
PAGING
at moment i display as this:

www.domain.com/artsupplies/beading.html/2
www.domain.com/artsupplies/beading.html/3

is that ok for SEO reasons and gettin index... or would a crawler be turned off by the above links?

i was thinkin of: ( but am not sure if i should) the mod rewrite was giving me problems...it is starting to get to complex i think

www.domain.com/artsupplies/beading/2.html


----------------------------------------------------------------------------
MY MOD REWRITES at the moment

rewriteEngine on

rewriteRule ^GOOGLE754880740b1c2d27.html$ GOOGLE754880740b1c2d27.html [L]
rewriteRule ^test5.html$ test5.html [L]
rewriteRule ^profile/([^/]+)\.html$ profile.php?list=$1 [L]
rewriteRule ^/?([^/]+)\.html$ listings.php?group=$1 [L]
rewriteRule ^/?([^/]+)/([^/]*)\.html$ listings.php?group=$1&category=$2 [L]
rewriteRule ^/?([^/]+)/([^/]+)/([^/]*)\.html$ listings.php?group=$1&category=$2&loc=$3 [L]
rewriteRule ^/?([^/]+)/([^/]*)\/basics.html$ basic.php?group=$1&category=$2 [L]
rewriteRule ^/?([^/]+)/([^/]+)/([^/]*)\.html$ listings.php?group=$1&category=$2&subCat=$3 [L]
rewriteRule ^/?([^/]+)/([^/]*)\.html/([0-9]*)/?$ listings.php?group=$1&category=$2&start=$3 [L]
rewriteRule ^/?([^/]+)/([^/]+)/([^/]*)\.html/([0-9]*)/?$ listings.php?group=$1&category=$2&subCat=$3&start=$4 [L]
# Extract the first part of the domain name
RewriteCond %{HTTP_HOST} ^([^.]+)\.
# If it's not www
RewriteCond %1 !^www$ [NC]
# Redirect permanently to www.example.com
RewriteRule . http://www.%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
rudyten
 
Posts: 37
Joined: Wed Nov 17, 2004 8:57 am

Return to Beginner's Corner

Who is online

Users browsing this forum: Google [Bot] and 2 guests

cron