URL mod rewrite for migrating site from cf to php

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kory27
Forum Newbie
Posts: 2
Joined: Sat Feb 28, 2009 12:15 pm

URL mod rewrite for migrating site from cf to php

Post 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.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: URL mod rewrite for migrating site from cf to php

Post by php_east »

using Apache mod rewrite would be it, yes.
kory27
Forum Newbie
Posts: 2
Joined: Sat Feb 28, 2009 12:15 pm

Re: URL mod rewrite for migrating site from cf to php

Post 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.
User avatar
php_east
Forum Contributor
Posts: 453
Joined: Sun Feb 22, 2009 1:31 pm
Location: Far Far East.

Re: URL mod rewrite for migrating site from cf to php

Post 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.
Post Reply