phpBB SEO
Boards
Directory  
SEO  
Downloads
  phpBB SEO : Search Engine Optimization, Directory, Forums  
Index
Forums
Annuaire
Référencement
Télécharger
 
  Search Rechercher
    Register
Username :  Password :  Log me on automatically each visit  
S'enregistrer  
 
   
Redirect from link in email does not work with SEO mod

 
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
::  
Author Message
Illuminati



Joined: 31 Jul 2007
Posts: 2

Redirect from link in email does not work with SEO modPosted: Tue Jul 31, 2007 6:21 pm    Post subject: Redirect from link in email does not work with SEO mod

I had to make a simple tweak in the viewtopic.php file in order to get the link in the email you get when you are subscribed to a topic that gets a reply.

*Note: I have tweaked the way this advanced mod creates my URLs to match the mod we were using with PHPBB2... so that's why there are not any titles in the url.

Here is the format of the URL that is sent in the email:
-http://forums.domain.com/viewtopic.php?f=49&t=10579&p=77038&e=77038

Here is what the url was getting re-written to:
-http://forums.domain.com/about10579.html&p=77038

This URL results in a 'File not found' error.

Here is what I did to fix it... although there would probably be some side effects for the typical advanced mod re-write users... but it happens to work for because of how we have changed the url format from the default title behavior...

Open: viewtopic.php

Find:
Code:
                redirect($redirect_url . ((!$post_id) ? "&p=$jump_to" : "&p=$post_id") . "#p$jump_to");


Replace with:
Code:
                redirect(((!$post_id) ? $redirect_url . "&p=$jump_to" : append_sid("{$phpbb_root_path}viewtopic.$phpEx", "p=$post_id")) . "#p$jump_to");


This way the post_id is included in the evaluation for the re-writen URL and the URL that is output is:
-http://forums.domain.com/post77038.html#p77038

Again, after looking at the code a little closer, this exact fix may not work for you, but it does for my situation... Not sure if this is something that could be included as a bug fix for the advanced SEO mod, but at the least, I hope it will help someone else.
Back to top
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Redirect from link in email does not work with SEO modPosted: Fri Aug 03, 2007 4:24 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

I think you've found and solved a bug, thanks a lot Wink

I'll take a closer look at it, but the solution your propose seems the good one.

++

_________________
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
Visit poster's website
TomaS
PR2
PR2


Joined: 08 Jun 2007
Posts: 226

Redirect from link in email does not work with SEO modPosted: Sat Aug 04, 2007 4:23 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

it is this fix in download pack now?I have RC4 and i want to know if this actually version of seo work good whitout problems?

_________________
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center
Back to top
Visit poster's website
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

Redirect from link in email does not work with SEO modPosted: Sat Aug 04, 2007 9:03 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

Well, both phpBB3 and the phpBB3 Mod rewrtie are RC right now, thus, potentially unstable.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
TomaS
PR2
PR2


Joined: 08 Jun 2007
Posts: 226

Redirect from link in email does not work with SEO modPosted: Sat Aug 04, 2007 9:58 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

yes i know but phpbb3 is neer to gold i think it isnt so unstable as you think and your seo if everythink will go as now it is perfekt Wink

_________________
phpBB podpora-slovak phpBB support
slovenský preklad pre phpbb3-slovak translate for phpBB3
predaj a kupa domeny, marketing a internetove podnikanie- Slovak domain center
Back to top
Visit poster's website
dcz
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 28 Apr 2006
Posts: 15242

Redirect from link in email does not work with SEO modPosted: Sun Aug 12, 2007 8:47 am    Post subject: Re: Redirect from link in email does not work with SEO mod

The full bug fix for these links is include in the upcoming 0.4.0RC1, with many other new feature I'm sure you'll appreciate a lot Wink

++

_________________
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
Visit poster's website
tweety
PR0
PR0


Joined: 24 Jan 2007
Posts: 94

Redirect from link in email does not work with SEO modPosted: Wed Aug 15, 2007 10:52 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

dcz will this update be for just phpbb3 or phpbb2 version also
Back to top
SeO
Administrateur - Site Admin
Administrateur - Site Admin


Joined: 15 Mar 2006
Posts: 4006

Redirect from link in email does not work with SEO modPosted: Thu Aug 16, 2007 7:19 am    Post subject: Re: Redirect from link in email does not work with SEO mod

phpBB3 this time. We'll see about phpBB2, it's possible that we back-port some of the great new feature developed for phpBB3.

_________________
phpBB SEO || SEO Forum || Forum Référencement
GYM Sitemap & RSS for phpBB3 has been released ! || GYM Sitemap & RSS for phpBB3 est disponible !
Back to top
Illuminati



Joined: 31 Jul 2007
Posts: 2

Redirect from link in email does not work with SEO modPosted: Thu Aug 16, 2007 12:45 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

Thanks for adding this to the next release!
Back to top
HB
phpBB SEO Team
phpBB SEO Team


Joined: 16 Oct 2006
Posts: 831

Redirect from link in email does not work with SEO modPosted: Fri Aug 17, 2007 3:12 am    Post subject: Re: Redirect from link in email does not work with SEO mod

SeO wrote:
phpBB3 this time. We'll see about phpBB2, it's possible that we back-port some of the great new feature developed for phpBB3.

I'm in no rush to migrate my heavily modified board to a new release of phpBB and would welcome a V2 compatible version. If history is an indicator, it may be a year or more before V3 really takes hold. I prefer to sit out the first round while others crash on the rocky shores. Shocked

_________________
Dan Kehn
Back to top
Visit poster's website
tweety
PR0
PR0


Joined: 24 Jan 2007
Posts: 94

Redirect from link in email does not work with SEO modPosted: Sat Aug 25, 2007 4:17 pm    Post subject: Re: Redirect from link in email does not work with SEO mod

same here
Back to top
Display posts from previous:   
Post new topic   Reply to topic    phpBB SEO » SEO Forum  » phpBB3 mod Rewrite  » Advanced SEO URL
Page 1 of 1

Navigation Similar Topics

Jump to: