Mod Rewrite for SEO Friendly Pages... |
9/26/2007 8:05:11 PM |
PHPRunner Tips and Tricks | |
powersitedesign author
I created a Real Estate solution for a client a while back in php and it has worked well for them but once the site launched we noticed that it wasn't getting crawled by the search engines as well as we would have liked for it to so I did a little research. I knew that typically data called in from a database dynamically presented a problem when it came to getting the best SEO performance. I asked a few developers this past year at HostingCon about this and they suggested I look into Mod Rewrite in apache and see if that wouldn't help out. I checked it out and so far the results have been phenomenal for the client. Here's what I did in case any of you run into a smilar situation. I first created an .htaccess file to redirect to a "home page", in this case it's called index2.php. Next I did a rewrite for the dynamically generated pages. The .htaccess file looks like this: Redirect permanent /index.php http://www.greersferryrealestatecenter.com/index2.php
|
|
W
|
wwwguru 9/26/2007 |
this is an excelent asset to this forum |
N
|
nicolagrimshaw 9/17/2008 |
Slightly belated (but just what I am looking for at the moment!)... I agree this is an excellent tip. Is there any way of extending this to the view pages? <TITLE>{$show_[i]XXXX[/i]}</TITLE>
|
N
|
nicolagrimshaw 9/17/2008 |
Sorry I tried to make it easier for an idiot like me to understand but managed to make it more complicated by using italics <TITLE>{$show_XXXX}</TITLE>
|
powersitedesign author 1/6/2009 | |
[quote name='don'tknowwhatI'mdoing' post='33141' date=Sep 17 2008, 03:13 AM]Sorry I tried to make it easier for an idiot like me to understand but managed to make it more complicated by using italics |
S
|
skbrasil 5/6/2016 |
I created a Real Estate solution for a client a while back in php and it has worked well for them but once the site launched we noticed that it wasn't getting crawled by the search engines as well as we would have liked for it to so I did a little research. I knew that typically data called in from a database dynamically presented a problem when it came to getting the best SEO performance. I asked a few developers this past year at HostingCon about this and they suggested I look into Mod Rewrite in apache and see if that wouldn't help out. I checked it out and so far the results have been phenomenal for the client. Here's what I did in case any of you run into a smilar situation. I first created an .htaccess file to redirect to a "home page", in this case it's called index2.php. Next I did a rewrite for the dynamically generated pages. The .htaccess file looks like this: Redirect permanent /index.php http://www.greersferryrealestatecenter.com/index2.php
|