how to redirect old url

phpBB3 SEO Advanced mod Rewrite support forum.
This mods performs URL rewriting for phpBB, injecting forums and topic titles in their URLs.

Moderator: Moderators

how to redirect old url

Postby alex13410 » Tue Jan 17, 2012 12:15 pm

hello all,
my url was like this:
monsite.com/forum/forum10/topicXXXX.html
Now they are in this form:
monsite.com/title-of-topic-tXXXX.html
the zero duplicate is enabled.
the old url of the different forum had no ID (/forum10/ for exemple), so that the old url forum give a 404, which is not a worry for me, but the problem is that monsite.com/forum/forum10/topicXXXX. html is not redirected to monsite.com/title-of-subject-tXXXX.html (404).
is there something to add in the htaccess, because I want my old url of topics to be redirected to the new?
thank you in advance for your help.
mon forum sur le detecteur de metaux http://www.detecteur-de-metaux.com info sur les detecteurs de metaux
alex13410
PR1
PR1
 
Posts: 103
Joined: Mon Apr 12, 2010 5:28 pm

Advertisement

Re: how to redirect old url

Postby dcz » Tue Jan 17, 2012 2:37 pm

All these urls (with pagination variants) should be properly redirected to whatever the url you choose by the zero dupe with the default generated .htaccess (latest version).
Code: Select all
forum10/topicXXXX.html
forum10/
topicXXXX.html


If it does not, then you must be using different defaults for the static parts of the urls (see install.xml on how and where to update them). Since you seems to have elected the advanced mode, you can safely update your static part to match these (eg forum to forum and topic to topic).
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: 21291
Joined: Fri Apr 28, 2006 9:03 pm

Re: how to redirect old url

Postby alex13410 » Tue Jan 17, 2012 4:11 pm

thank you for your answer.
I forgot two important things:

-monsite.com/forum/topicXXXX.html is properly redirected to monsite.com/title-of-topic-tXXXX.html, it's just monsite.com/forum/forum10/topicXXXX.html which is not redirected to monsite.com/title-of-topic-tXXXX.html

-you said htaccess lastest version. my version is 3.0.7-PL1 so perhaps it's the reason why it doesn't work? If it is, I am afraid to update my version because I have changed a lot of html and css. so I read install.xml but i didn't find how I can do.
is it possible for me to update my version only on this point?
mon forum sur le detecteur de metaux http://www.detecteur-de-metaux.com info sur les detecteurs de metaux
alex13410
PR1
PR1
 
Posts: 103
Joined: Mon Apr 12, 2010 5:28 pm

Re: how to redirect old url

Postby alex13410 » Sat Jan 21, 2012 8:39 am

dcz wrote:If it does not, then you must be using different defaults for the static parts of the urls (see install.xml on how and where to update them). Since you seems to have elected the advanced mode, you can safely update your static part to match these (eg forum to forum and topic to topic).

I read again install.xml and now I think I understand what you mean (I have 3.0.7-PL1 version so perhaps it 's why the old url are nor redirected?).
so if I understand I have to add something in the file phpbb_seo/includes/setup_phpbb_seo.php, isn't it?
I would like to ask you tree things:
1-can you give an exemple of what I have to add (for exemple to redirect all the old url of an old forum monsite.com/forum/forum10/topicXXXX.html to the new monsite.com/topic-title-tXXXX.html)?
2-I have to generate an other htaccess?
3-why monsite.com/forum/topicXXXX.html is well redirected to monsite.com/topic-title-tXXXX.html and not monsite.com/forum/forum10/topicXXXX.html? is it because /forum10/ hadn't ID?
mon forum sur le detecteur de metaux http://www.detecteur-de-metaux.com info sur les detecteurs de metaux
alex13410
PR1
PR1
 
Posts: 103
Joined: Mon Apr 12, 2010 5:28 pm


Return to Advanced SEO URL

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 8 guests