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
Redirecting for seo reasons
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Redirecting for seo reasons
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
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/
# 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/
Re: Redirecting for seo reasons
So if I wanted to use, say, index.php?blog, how would I do that?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.
YL
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Redirecting for seo reasons
Hi!
It should suffice to use <a href="index.php?blog"> in that case?!
Regards,
Garvin
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/
# 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/
Re: Redirecting for seo reasons
Oh, I didn't even know that one already existedgarvinhicking wrote:It should suffice to use <a href="index.php?blog"> in that case?!
You know, sometimes it's just too easy
Thanks.
YL
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Redirecting for seo reasons
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
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/
# 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/
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Redirecting for seo reasons
I like that one MUCH better!!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
=Don=