Redirecting for seo reasons

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Redirecting for seo reasons

Post by yellowled »

I have a client using Bulletproof with an individualized startpage http://unitedmaps.net.

From that startpage, there's a link to the actual blog entries which links to "index.php?frontpage". The client would like this to link to something like "/blog/".

Is there any way to do this, maybe some .htaccess wizardry? (I'm an absolute amateur with .htaccess.)

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Redirecting for seo reasons

Post by garvinhicking »

Hi!

Using a subdirectory would involve some heavy trickery, because all relative paths would be screwed up then. This would lead to duplicate content when using rewriterules to fix this issue (redirect everything from /blog/ to /), which I believe would be even worse for SEO.

To show the blog page (and not the startpage), the s9y index.php must be called with ANY query string. You could use index.php?b or whatever, but you need a query string.

The only other way is to create a file like "blog.php" in which you would manually change $_SERVER['QUERY_STRING'] and $_SERVER['REQUEST_URI'] to look as if you called index.php?b and then include the s9y index.php file. This is also quite hackish.

I'd suggest to live with calling the frontpage with any kind of query parameter.

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Redirecting for seo reasons

Post by yellowled »

garvinhicking wrote:To show the blog page (and not the startpage), the s9y index.php must be called with ANY query string. You could use index.php?b or whatever, but you need a query string.
So if I wanted to use, say, index.php?blog, how would I do that?

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Redirecting for seo reasons

Post by garvinhicking »

Hi!

It should suffice to use <a href="index.php?blog"> in that case?!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
yellowled
Regular
Posts: 7111
Joined: Fri Jan 13, 2006 11:46 am
Location: Eutin, Germany
Contact:

Re: Redirecting for seo reasons

Post by yellowled »

garvinhicking wrote:It should suffice to use <a href="index.php?blog"> in that case?!
Oh, I didn't even know that one already existed :-)

You know, sometimes it's just too easy :wink:

Thanks.

YL
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Redirecting for seo reasons

Post by garvinhicking »

Hi!

It simply is required to use a querystring that's non empty. You could also use index.php?gimme_that_bitchin_page_already :)

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Redirecting for seo reasons

Post by Don Chambers »

garvinhicking wrote:Hi!

It simply is required to use a querystring that's non empty. You could also use index.php?gimme_that_bitchin_page_already :)

Regards,
Garvin
I like that one MUCH better!! :lol: :lol: :lol:
=Don=
robi-bobi
Regular
Posts: 40
Joined: Mon Nov 21, 2005 12:40 pm
Location: Bulgaria
Contact:

Post by robi-bobi »

while this is OK and is working, it would still be nice if we could use some custom (rewritten) url

I will try that hackish thing and report :)

edit:
reporting: it works
Post Reply