We are converting from a Cold Fusion based site to a PHP based one, so of course all the file names are changing (hundreds of pages). In this case, where does the 301 redirect script.command go? Do we use the Cold Fusion version or the PHP version? And do we have to maintain all these old files (e.g. the command goes in the file for each page? The stuff on this on the web basically just says: "For PHP, use this:...", and that's it, with most "advice" sites just copying someone else who said the same exact thing. I'm the business person, just doing some digger for my webmaster as we make the conversion. Thanks for any help! Dan Gilmore
You might be better using htaccess to configure your site to process .cfm files in the same way as .php files. That way you don't have to worry about redirecting anything. See http://forums.digitalpoint.com/forumdisplay.php?f=49 for more details on htaccess
That's an option but long term probably not the best (adding new files with .cfm extension whilst being PHP is rather confusing IMO). Just use a htaccess file at the root - you don't need to keep all the old files, just a list of the old filenames and each new equivalent.
Thanks TOPS30... sorry to be dumb but again is that using the CF script (our current/soon to be old technology) or PHP (our new basis). All the advice sites give you the simple script for each platform, but it's not clear to me in this case which one you would use. Do we maintain the old root diretory and put it there? Dan Gilmore
Create a htaccess file in the root and all the code to redirect goes in there. Its not php code or cf code.
Like the man says. Just plain text file you can make in notepad. redirect 301 /old_file.cfm http://yourdomain/newfile.php Code (markup): It's not Coldfusion or PHP, it's Apache lingo.
I will try to make this the last dumb questions. 1. But we are not using an Apache server. Both the current and the new servers are on IIS. So when you say it's Apache lingo, does that matter? 2. If the development language doesn't matter, why all these commands strings on the web sites on this topic for Cold Fusion, PHP, etc. That's what I guess got me confused, if I am confused. Thanks to all! Dan Gilmore