And welcome
So yes, there is.
The steps are not difficult, but should be performed with caution, as we want everything to work on the first try to make the url switching as sudden as possible for SEs to handle it as fast as possible.
As you can see from
this report, when everything is done cautiously, migrating is really fast and does not even cause any loss of visitors from SEs.
There is as well something to take care well about in your case, it's the windows-1256 you're using. We already have a solution for UTF-8, that makes the mod only inject the latin1 charset word in urls :
http://forum.persia-cms.com/
As you can see this UTF-8 version is able to only inject Latin characters in urls and to rather use a static rewriting when no Latin characters are found in the title.
This is done by only replacing the format_url code in phpbb_seo/phpbb_seo_class.php, the code used for utf-8 is the following :
- Code: Select all
function format_url( $url, $type = 'topic' ) { // The UTF-8 0.2.x candidate :-)
//Short url
$url = preg_replace("(\[.*\])U","",$url);
$url = strtolower($url);
$find = array('"','&','<','>','\r\n','\n',);
$url = str_replace ($find, '-', $url);
$url = rawurlencode($url);
$url = preg_replace("`%[a-zA-Z0-9]{2}`", "-", $url);
$url = preg_replace("`[^a-zA-Z0-9-]`", "-", $url);
$url = preg_replace("`([\-])+`", "\\1", $url);
$url = trim($url, '-');
$url = ( $url == "" ) ? $type : $url;
return $url;
}
It should as well work for windows-1256, but this need to be confirmed.
So the best would be if you set up a test forum, live or local to make sure everything is installed properly and as well the windows-1256 handling before you go online.
On the test forum, follow these steps :
1) undo all code changes from the mod_rewrite Keyword URLs mod you're using.
2) Make sure the cyber alien guest session mod is installed, it seems it is.
3) update your .htaccess for the phpBB SEO advanced mod rewrite. I could not download your mod, but the principle is you want both types of url to work, to be able to redirect them.
According to what I see on your forum, the two standard are close, yours using -vt and -vf (like the good old webmedic mod used to) so the following .htaccess should do it at the domains' root level (not in the forum/ folder) :
- Code: Select all
RewriteEngine On
RewriteBase /
#########################################################
# PHPBB SEO REWRITE RULES #
#########################################################
# AUTHOR : DCZ http://www.phpbb-seo.com/
# STARTED : 01/2006
#####################################################
# FORUMS PAGES
########################
# FORUM INDEX (un-comment if used)
# RewriteRule ^forum/index\.html$ /forum/index.php [QSA,L]
# FORUM PROTECTION RULE
# RewriteRule ^forum/.*/([^/]+\.html)$ /forum/index.php [R=301,L]
# CATEGORIES
RewriteRule ^forum/.*-v?c([0-9]+)\.html$ /forum/index.php?c=$1 [QSA,L]
# PAGINATED FORUM
RewriteRule ^forum/.*-v?f([0-9]+)-([0-9]+)\.html$ /forum/viewforum.php?f=$1&start=$2 [QSA,L]
# FORUM
RewriteRule ^forum/.*-v?f([0-9]+)\.html$ /forum/viewforum.php?f=$1 [QSA,L]
# PAGINATED TOPIC
RewriteRule ^forum/.*-v?t([0-9]+)-([0-9]+)\.html$ /forum/viewtopic.php?t=$1&start=$2 [QSA,L]
# TOPIC
RewriteRule ^forum/.*-v?t([0-9]+)\.html$ /forum/viewtopic.php?t=$1 [QSA,L]
# POST
RewriteRule ^forum/post([0-9]+)\.html$ /forum/viewtopic.php?p=$1 [QSA,L]
#PROFILES
RewriteRule ^forum/member([0-9]+)\.html$ /forum/profile.php?mode=viewprofile&u=$1 [QSA,L]
# END PHPBB PAGES
#####################################################
Which is just the regular phpBB SEO advanced mod rewrite .htaccess, for folder installs, I just replaced all the phpbb with forum to suite your set up and added "v?" in the rewriterule to extend the redirect to both -f and -vf.
The
zero duplicate will do the proper redirect, but will install it a little after.
At this stage you should see the phpbb vanilla URL outputted on the forum and still have the rewritten links working. You can test the .htaccess live as well, links should work exactly as now on the live forum (still using the older mod).
4) Perform the changes : install the phpBB SEO advanced mod rewrite.
Do it for all files before it will work.
Once this is done you should see every link rewritten, unless you're for example using simple sub forum, which will require a
small patch.
5) Once all is correct, you can install the advanced
zero duplicate.
You can make sure about the headers before you install it if you really want to be able to changes your URL all the sudden, you'll find
how on this topic.
Once everything is working nicely on the test forum, first upload the new .htaccess on the live site, links should still work, then upload all changed files and voila
You'll just need to once more make sure about the headers on the live site with the real code and you'll be done.
All other phpBB SEO mods will follow the exact same URL standard as the one decided by the custom format_url.
++