I have a fairly large site with many html pages. I would like to add geotargeting to them so it seems I need to make them php pages. But then I have to redirect them all, a very large number of redirects to point to the php version of instead of the html. Is there a better way? If not, what is the impact of a large number of redirects?
I would recomend backing up your content then installing something like phpnuke or phpplatinum. I can recomend someone if you would like, if so send a pm. I'm not a pro but I think it would be a logical solution. Please keep us posted on the solution you choose.
Those are cms systems, right? How does using them get my html pages to php without redirecting each one of them? Do they automate it for me?
Add this to your .htaccess file: AddType application/x-httpd-php .php .html Code (markup): Every html file will be parsed by the PHP parser first. If there's no PHP inside, nothing will happen, if there is, it will run that PHP. The alternative is a redirect from html to php, but I prefer the top solution.
Adding the type handler to .htaccess works great, thanks! I knew this technique already from the time I embedded a newsfeed in another site, but I forgot all about it. Thanks for the reminder.
This is why I love DP Thanks for this info. I don't need it right now but I never knew this. Rep to you!
I don't understand all that parser redirect stuff ...but if you still need to convert html to php ---> this is a good tool & very quick & easy to work http://www.easyhtools.com/ehsdescription.html Please bear in mind I know nothing about php! but just incase this may be of some use - out of curiosity some months back I converted some html files with it, to php, and got a friend to see if the looked ok. and it worked great