Page 1 of 1
URL mod rewrite for migrating site from cf to php
Posted: Sat Feb 28, 2009 12:19 pm
by kory27
Hi. I am moving my site from a cf site to pinnacle cart php powered site. I want to maintain the search listings b/c it is an old site and have researched to the point that i know php can fully imitate the old url structure.
Has anyone done this before or know a good place to continue my research?
Thanks so much.
Re: URL mod rewrite for migrating site from cf to php
Posted: Sat Feb 28, 2009 12:55 pm
by php_east
using Apache mod rewrite would be it, yes.
Re: URL mod rewrite for migrating site from cf to php
Posted: Sat Feb 28, 2009 1:09 pm
by kory27
would you say that it is difficult. i have no php experience, but i am a pretty quick learner but if it is advanced i will just wait for my developer later in the week.
Re: URL mod rewrite for migrating site from cf to php
Posted: Sat Feb 28, 2009 3:30 pm
by php_east
difficulty is relative, so i would go only as far as saying it is cryptic.
it also involves regexes, so i would advise professional guide, else your rerouting would go off
way beyond control.
here is an example of rewriting with .htaccess ...
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} !^example\.com
RewriteRule (.*)
http://example.com/$1 [R=301,L]
( example taken from http://www.webweaver.nu/html-tips/web-redirection.shtml )
it is actualy beyond PHP, into the realms of Apache and PERL.