Forum Moderators: open
http*//example.com/prod/123//n/abc////Y//def
These variables would be filled in during a normal shopping experience so I have to keep them around. Now my question, is this going to cause a problem with having my site crawled? The link above would be similar to a link to one of my products. I haven't found any information about the affects of having two slashes next to each other. Would it help if I converted the slashes to commas? Please help!
[edited by: pageoneresults at 7:03 pm (utc) on Nov. 12, 2003]
[edit reason] Delinked URI [/edit]
I would concentrate on eliminating those / as they are probably going to cause issues. This URI should be shortened as much as possible...
http*//example.com/prod/123//n/abc////Y//def
http*//www.example.com/prod/123/
I might even go one step further and shorten it to...
http*//www.example.com/123/
... but only if you can. When rewriting URIs, the goal is to eliminate as many of the variables as possible so that you end up with a short user friendly URI. This...
http*//example.com/prod/123//n/abc////Y//def
... is not going to work from my perspective. You've got at least 10 levels there and I doubt very seriously that any well behaved spider is going to go that deep any time soon. Googlebot may get to the content at some point but my experience has shown that the shorter the URI, the quicker the page gets indexed and the more user friendly it is.
You could also try fixing your rewrite to expand certain single slashes to stacked internal slashes. I would be very wary of system resources when doing mult. rewrite levels.
and the above about it being too deep for google. hooey. Just get your urls in a non-dynamic form and google will own you.
Would there be a complication if I substituted some of the slashes for hyphens?
www.example.com/prod/123/usr-rrc-act
or it could be
www.example.com/prod/123/--
I still seeing if it's feasible to eliminate the prod, since it is being used for my pattern matching.
[edited by: agerhart at 2:53 pm (utc) on Nov. 18, 2003]
[edit reason] delinked [/edit]
i agree with pageoneresults. try to remove all the / from the url.
you can still have the pattern matching for the products if you just put something in the url which is unique on a product page.
eg:
www.yoursite.com/prod-123
so the rewrite rule would look like this:
^/prod-(.*)$ points to /product.php?ProdId=$1
and if you need the more variables just use something like this:
www.yoursite.com/prod-123-var1-cc
and the rewrite:
^/prod-(.*)-var1-(.*)$ points to /product.php?ProdId=$1&Var1=$2
i'm not sure, if the rewrite rules i posted work 100%, but i think this gives you an idea, how to solve this problem.
barn
[edited by: agerhart at 2:54 pm (utc) on Nov. 18, 2003]
[edit reason] delinked [/edit]
When someone is in my shopping cart they are automatically give a customer number. If a search engine crawls my site, will it too get a customer number? If so all is fine and dandy, if not then I may have empty variables.
www.example.com/prod-123/-
ie. www.example.com/prod-123/[customer#]-[email addr]
These two variables are essential to the "customer experience.