404 error in icon latest topic and after edit topic

Discussions and support about the different URL Rewriting techniques for phpBB.

Moderator: Moderators

404 error in icon latest topic and after edit topic

Postby iotopia » Mon Oct 12, 2009 4:24 am

Hello dear PHPBB SEO friends

I recently installed the Ultimate SEO URL mod and all seems fine, but today some friends report that some 404 error appear in some links.

I check my site and the error appear when some hit the latest topic icon in the index and inside the forum as you can see below:

Display in Index forum
Image

Display inside forum
Image

I note that if someone enter to the forum and do a search to the last topic posted and hit in the title the topic show ok, and the URL is similar in the end with the link of the latest topic icon, and I don't know where I can patch my template (that is based in prosilver), because I follow all the instructions of installation.

Additionally I try the edit of some topic and when I saved the topic, the forum ever offer see the Topic saved but the URL had the same construction of the latest topic icon, i mean, something like:

http://www.iotopia.net/foros/post56007.html#p56007
instead of:
http://www.iotopia.net/foros/cuartel-ge ... tml#p56007
Like you can see below:

After edit, you can see the edited topic (automatic redirect) or choose to see the forum. In this example, the same topic of above was edited and the automatic redirect go to the 404 error, because the URL is not properly constructed:
Image

The error after edit or click the link with malformed construction:
Image

My question is, where is the steps to patch this links or what files must be edited to correct this errors?

The mod is awesome, and works nicely, but I think that if this little errors are corrected the mod could reach the perfection :)

Note: I installed the GYM Sitemaps too, and seems to be OK.

Thanks a lot!
iotopia
 
Posts: 2
Joined: Mon Oct 12, 2009 3:20 am

Advertisement

Re: 404 error in icon latest topic and after edit topic

Postby Treben_Media » Mon Oct 12, 2009 3:00 pm

Hello. It sounds like you missed a file edit to me. Can you double check that you have completed the following edit in viewtopic_body.html for all the styles you are using:

Code: Select all
#
#-----[ FIND ]------------------------------------------
#

<a href="#p{postrow.POST_ID}">

#
#-----[ REPLACE WITH ]------------------------------------------
#

<a href="{U_VIEW_TOPIC}#p{postrow.POST_ID}">


I would also double check your other edits to make sure you didn't miss any thing.
Treben_Media
 
Posts: 44
Joined: Wed Sep 30, 2009 2:29 pm

Re: 404 error in icon latest topic and after edit topic

Postby iotopia » Mon Oct 12, 2009 4:04 pm

Hello dear Treben Media

Thanks by your time and faster answer.

I re-check the file that you point me, but the line is completely edited.

UPDATE:

After a carefully revision of forums and read the installation, I found the error. I replace in .htaccess the line related to POST rewrite:

Code: Select all
# POST
RewriteRule ^mensaje([0-9]+)\.html$ viewtopic.php?p=$1 [QSA,L,NC]



and forgot to edit the setup_phpbb_seo.php

Code: Select all
      // ==> Static parts <==
      // Can be overridden, requires .htaccess update.
      // Example :
         $this->seo_static['post'] = 'mensaje'; // instead of the default "post"


And of course, after done this fix, I rebuild my .htaccess and clean the cache.

Now the troubles are fixed :D

Thanks a lot and I hope that this can help others to correct this sort of problems.
iotopia
 
Posts: 2
Joined: Mon Oct 12, 2009 3:20 am

Re: 404 error in icon latest topic and after edit topic

Postby dcz » Sun Oct 18, 2009 8:17 am

Seeing post url (postxx.html or viewtopic.php?p=xx) under some circumstances is not an issue in itself, the issue you're facing here is an .htaccess one with the post rewriterule.

Since other links do work, try to generate a new one and implement it, should fix it.

Just notice that post urls being duplicate of topic urls, the zero duplicate can HTTP301 redirect them and the no duplicate mod can replace post urls with corresponding topic ones on index, forum and topic pages ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21407
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google [Bot] and 7 guests