| :: |
| Author |
Message |
krishmk
Joined: 04 Mar 2007 Posts: 6
|
Posted: Thu Mar 08, 2007 6:12 am Post subject: 301 redirects for old urls |
|
|
I installed seo mixed mod rewrite a couple of days back.
My site is a new one. Infact I submitted to search engines 10 days back. Yahoo, google and msn have indexed my home page along with 3 or 4 sub pages. The indexed page have the session ID.
As now I had taken off the session IDs for guest and blocked it from robots.txt, do I still need to install Zero duplicate mod?
If so, how to I download the zero duplicate mod, it doesn't allows to download, though i could see a download image.
By the way, I also have added sitemap (145 urls without session ids - and all html pages) which is been downloaded by google without any errors. |
|
|
| Back to top |
|
 |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
krishmk
Joined: 04 Mar 2007 Posts: 6
|
Posted: Fri Mar 09, 2007 9:04 am Post subject: was able to download it. |
|
|
Hi,
I was able to download the zero duplicate mod now.
I read in google help that I could create static copies of dynamic urls, as far as I block them using robots.txt, it wont consider them as duplicate contents.
Do I still need to use this zero duplicate mod? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
Posted: Fri Mar 09, 2007 2:28 pm Post subject: Re: 301 redirects for old urls |
|
|
Well yes, because the zero duplicate is doing a lot more than a robots.txt can.
First, it's absolute, no matter how well bots will deal with your robots.txt, they just won't be able to index any duplicate.
For example, if someone posts a links to a forum, with typos in the url, the created duplicate will be taken care of : http://www.phpbb-seo.com/boards/many-duplicate-vf45/ which would not be the case without it.
Additionally, it wil redirect links with SIDs for guests, will check the pagination parameter consistency, unlike here for now ( still need to install the last version here) http://www.phpbb-seo.com/boards/phpbb-seo-mods-vf32-27/ would be redirected to http://www.phpbb-seo.com/boards/phpbb-seo-mods-vf32-25/ eg the closest valid start parameter.
And, it's the only way to keep all previous backlinks and indexed url while implementing a new url standard. If you add the vanilla url indexed, the zero dupe will tell bots what is the new url to consider on a per case basis so that bots won't have any trouble to deal with the new urls.
Last but not least, it's kind of a great security enhancement, as the principle is to only allow some POST and GET vars, if someone tries to add POST and/or GET vars to try to inject some code, it's will be in most cases http 301 redirected very early in the script.
So all together this makes this mod a must IMHO.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
krishmk
Joined: 04 Mar 2007 Posts: 6
|
Posted: Sat Mar 10, 2007 6:29 am Post subject: Thanks |
|
|
| Thanks for the explanation. Will make a try! |
|
|
| Back to top |
|
 |
krishmk
Joined: 04 Mar 2007 Posts: 6
|
Posted: Sat Mar 10, 2007 8:22 am Post subject: problem with zero dup. mod |
|
|
I successfully installed the zero duplicate mod. (mixed seo mod) for my forum
HostingsIndia[dot]com
Everything seems to work fine. I checked my indexed pages in google which have the session id, they are being redirected as expected.
But I am having a major problem when I try to log in to my account using Mozilla Firefox 2.0. As a guest I can view the (home page). When I log in its just a blank page. If I hit the back button, and click on the top menus (eg. member list, profile or user groups) I see that I am in "logged in" mode.
2) If I type mysite.com/index.php >>> its again a blank page. (in firefox)
Amazingly both seem to work fine in IE
Logging in (and)
mysite.com/index.php >>> points to >>> mysite.com/
how do I correct this? |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
krishmk
Joined: 04 Mar 2007 Posts: 6
|
Posted: Sun Mar 11, 2007 5:34 am Post subject: It works now |
|
|
I checked the common.php and index.php files. Everthing appeared to be fine.
Finally I looked in phpbb_seo_class.php. Under the URL settings
changed 'index' => ' '
to
'index' => 'index.php'
Now it works fine.
mysite.com/ redirects to mysite.com/index.php (301 redirect - hope that ain't a problem)
It also resolved one more error. Previously in topic and forum pages, the "forum index" link was pointing out to the same page instead of the home page. (only in firefox). But now it works fine as well.
Finally I am able to login to my account thru firefox.
Thanks for your support. |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
Posted: Mon Mar 12, 2007 2:48 pm Post subject: Re: 301 redirects for old urls |
|
|
So yes, everything is working now, but you still have $phpbb_seo->seo_path['phpbb_url'] empty.
The index link :
| Code: | | <a href="index.php" class="nav">HostingsIndia.com Forum Index</a> |
Should here mention the full URL, and that's the same with the redirection, they here work, but do not mention the full URL.
It's no big deal, but still, you should check you forum acp settings : domain name (should be "www.hostingsindia.com") and script path (should be "/").
If it's not enough, just open phpbb_seo/phpbb_seo_class.php and find :
| Code: | | $this->seo_path['phpbb_url'] = $this->seo_path['root_url'] . $this->seo_path['phpbb_script']; |
replace with :
| Code: | | $this->seo_path['phpbb_url'] = 'http://www.hostingsindia.com/'; |
It will still be better to keep the url hard-coded than empty.
++ |
_________________ Useful links :
SEO Forum || SEO Directory || SEO phpBB || SEO phpBB3 || Search
____________________
Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Référencement phpBB3 || Recherche |
|
| Back to top |
|
 |
krishmk
Joined: 04 Mar 2007 Posts: 6
|
Posted: Fri Mar 16, 2007 9:56 am Post subject: Gotcha! |
|
|
Thanks for guiding me on that.
I did see that it points only to the file name "pagetitle.html" as pointed out by you.
Now I made the necessary changes as suggested by you and shows the full url:
-http://site.com/pagetitle.html (with 301 redirection)
Now it works fine (finally......)
BTW, last week sunday, my ftp account was compromised and some of the files were replaced. I had to replace all those things.
Thanks a lot.
 |
|
|
| Back to top |
|
 |
dcz Administrateur - Site Admin

Joined: 28 Apr 2006 Posts: 15414
|
|
| Back to top |
|
 |
|
|