Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke
Author Message
slackervaara
Worker
Worker



Joined: Aug 26, 2007
Posts: 236

PostPosted: Mon Oct 01, 2012 11:10 am Reply with quote

Hi all,

I have one year ago migrated from PHP-Nuke to Joomla and everything is not better. Miss a lot from PHP-Nuke. During migration I upgraded the forum to phpBB3. This have, however, resulted in a lot of Google errors that uses the old Nuke addresses - I can get 60000 such Google errors a day.

I wonder is it possible to make Rewriterules and automatically change to the new phpBB3 adress?

I have make some tests on a test server that failed

Code:
RewriteRule  ^phpBB3/viewtopic.php?p=([0-9]*) ftopicp-$1.html [L] 


This is for:
ftopicp-196457.html

should become:

phpBB3/viewtopic.php?p=196457
 
View user's profile Send private message
wHiTeHaT
Life Cycles Becoming CPU Cycles



Joined: Jul 18, 2004
Posts: 579

PostPosted: Thu Oct 04, 2012 3:47 pm Reply with quote

I'm not sure if this works:

Code:
RewriteEngine On

RewriteRule ^ftopicp-([^/]*)\.html$ /phpBB3/viewtopic.php?p=$1 [L]



What it does is...
The original URL: [ Only registered users can see links on this board! Get registered or login! ]
The rewritten URL: [ Only registered users can see links on this board! Get registered or login! ]

it converts your existing urls to the OLD methode.
My theory behind it is that your SEO indexed urls stil should working?????

SOURCE: [ Only registered users can see links on this board! Get registered or login! ] Wink
 
View user's profile Send private message Send e-mail
slackervaara







PostPosted: Sat Nov 10, 2012 11:08 pm Reply with quote

Thanks! I have found a simpler solution by adding this line in robots.txt:
Disallow: /ftopic*
 
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Sun Nov 11, 2012 3:38 pm Reply with quote

A htaccess Disallow rule will only stop search engines who obey robots.txt from crawling those links, it will not help to clean up old links. What you really need to be doing is a 301 redirect so the search engines know the old link is dead and to drop it from the index.
 
View user's profile Send private message Send e-mail
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> ShortLinks/TegoNuke

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©