scottsanders
01-29-2010, 03:22 AM
Hi,
I am trying to make profile pages for members on my site, and I want to use mod_rewrite to load specific content on their profile pages, from different links throughout the website. The catch, however, is that I don't want search engines to view each different link as a different web page.
Here's my page (without mod_rewrite):
mysite.com/profile.php?member=peter&tab=photos
mysite.com/profile.php?member=peter&tab=biography
The page has both sections loaded, but separated by a tabs using jQuery, so you click through the tabs to view the loaded information on the page (no ajax). I just want to use the "tab" parameter to tell the page which tab to make active first. Here is the ideal rewrite I'd like:
mysite.com/peter#photos
mysite.com/peter#biography
But I cannot find a way to do this with mod_rewrite. I want to avoid doing this:
mysite.com/peter/photos
mysite.com/peter/biography
because a search engine would see the two links as two separate pages, and I would halve my SEO for links directing to www.mysite.com/peter
Is there some way I can use mod_rewrite to tell my source page which tab of content to make visible first, without search engines viewing the url's as different pages?
Hope this makes sense :)
Scott
I am trying to make profile pages for members on my site, and I want to use mod_rewrite to load specific content on their profile pages, from different links throughout the website. The catch, however, is that I don't want search engines to view each different link as a different web page.
Here's my page (without mod_rewrite):
mysite.com/profile.php?member=peter&tab=photos
mysite.com/profile.php?member=peter&tab=biography
The page has both sections loaded, but separated by a tabs using jQuery, so you click through the tabs to view the loaded information on the page (no ajax). I just want to use the "tab" parameter to tell the page which tab to make active first. Here is the ideal rewrite I'd like:
mysite.com/peter#photos
mysite.com/peter#biography
But I cannot find a way to do this with mod_rewrite. I want to avoid doing this:
mysite.com/peter/photos
mysite.com/peter/biography
because a search engine would see the two links as two separate pages, and I would halve my SEO for links directing to www.mysite.com/peter
Is there some way I can use mod_rewrite to tell my source page which tab of content to make visible first, without search engines viewing the url's as different pages?
Hope this makes sense :)
Scott