Page 1 of 1

Redirecting for seo reasons

Posted: Wed Oct 08, 2008 12:08 pm
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

Re: Redirecting for seo reasons

Posted: Wed Oct 08, 2008 12:17 pm
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

Re: Redirecting for seo reasons

Posted: Wed Oct 08, 2008 12:28 pm
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

Re: Redirecting for seo reasons

Posted: Wed Oct 08, 2008 3:10 pm
by garvinhicking
Hi!

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

Regards,
Garvin

Re: Redirecting for seo reasons

Posted: Wed Oct 08, 2008 3:20 pm
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

Re: Redirecting for seo reasons

Posted: Wed Oct 08, 2008 3:32 pm
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

Re: Redirecting for seo reasons

Posted: Wed Oct 08, 2008 9:17 pm
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:

Posted: Thu Oct 09, 2008 2:19 pm
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