Forum Moderators: open
I would like to use a technique where a "static" page issues a server.transfer to the dynamic page (with all the products listed for that category) and pulls all the content into the static page.
I have the server.transfer bit working fine, the problem is in passing the querystring information so the page displays correctly.
Here is what I want to achieve:
say that foo.asp wants to transfer to shopfoo.asp?prod=23&catid=glass
I would code the following in foo.asp
servervariables("QUERY_STRING") = "prod=23&catid=glass"
server.transfer("shopfoo.asp")
Now I realise this doesn't work but I put it here to illustrate what I am trying to achieve. I basically want the tranfered dynamic page to run exactly as it would if referenced directly as a url.
Is there any way to "set" the Querystring variables programatically?
Or has any other clever lateral thinking person got another way of tackling this problem?
TIA
Janet
BTW I have looked at ASAPI rewrite but as the site runs on a shared virtual server not under my control, it will be difficult to implement.
Would it possible to include the transfer page (shopfoo.asp) into the static pages as a subroutine or function, then it would only have to pass parameters to the subroutine. Using an include statement in the static pages, would still keep a single source as well.
I have noticed that Google is not assigning Page Rank to pages with? in the url and have had trouble with a ASP shopping cart solution getting it to rank well.
I think you're troubleshooting the wrong problem here and making extra work for yourself. Google has no such restriction - I have several pages on my site that contain a? followed by querystring data, and many of them have a PageRank of 7 or more. It's not always the same as the same URL without the querystring either, so Google *is* in fact assigning PageRank to pages with querystring data.
I also have a shopping cart which I wrote myself in ASP. Searches on Google for part numbers and other products by name will return the specific product page within the top 3 results most of the time. I have done *ZERO* search engine optimization with this site - my rank is based soley on relevance of the pages. I can give you specific URLs via Sticky if you would like.
I still cannot understand though, why my shopping catalogue pages are consistently showing as "not ranked". The site is 3 months old, with all non query string pages showing at least a PR3. Home page is PR5, all foo.asp pages linking from home page are PR4 while all shopfoo.asp?catid=99 pages linking from home page are "not ranked".
Please understand, not ranked does not mean "not indexed". The pages are definitely indexed and yes, if I do a search for the product name and stock number, it is returned.
The issue is they are not ranking as well as I believe they could (I have done a lot of successful SEO)and I am drawing the conclusion that Google not passing page rank to these pages is having a negative effect on rankings.
Perhaps though it is not the? that is the problem. Perhaps it is something being sent in the headers from the server to the spider.
If anyone wants to take a look at the site, please stickymail me and I will send the url.
Again I didn't do this to make it "optimized" for Google, it just turned out that way. I wrote a function that will show all of the products in a category so I can call the function like:
<table>
<%Call ShowCategory(catID)%>
</table>
This might have something to do with it. I should also point out that I have almost zero inbound links from other sites, so I speculate that my high position comes from the relevance of the Page title, URL, and content.
Link popularity and its associated Page Rank is not the "be all and end all" for Google rankings but it certainly is one aspect of Google's algorithm, and without a Page Rank being assigned to the page, the pages will underperform in the search engine results.
I will certainly look at the other options for "pulling in" my catalogue pages, either includes or function calls or whatever. Just need to get away from the?
OK I think we have some confusion with the term Page Rank
No confusion at all, I know what PageRank is. I shouldn't have said zero, but it's pretty close to zero :) The few links I do have are from authorities, which is how the PR got so high. It's not the QUANTITY of links that determine PR, it's the QUALITY.
And again, it's not the? or querystring data that's hurting you, a page with querystring data is treated as a separate page by Google.
viewProduct.asp?id=whatever
and
viewProductWhatever.asp
Are treated no differently by Google. If you go and redesign your website you're still going to have the exact same problem you have right now. Your problem isn't with the querystring. I'm trying to save you a lot of time - nothing is going to change if you redesign your cart over this.
As I said earlier, "I still cannot understand though, why my shopping catalogue pages are consistently showing as "not ranked". The site is 3 months old, with all non query string pages showing at least a PR3. Home page is PR5, all foo.asp pages linking from home page are PR4 while all shopfoo.asp?catid=99 pages linking from home page are "not ranked".
Your insights are most welcome. Please sticky me if you want the url.