SEO Class in Chicago, IL
Are you a Google Analytics enthusiast?
More SEO Content
301 Redirect Confirmation
Posted 15 October 2010 - 03:25 PM
Just need confirmation on a 301 redirect please guys.
Im changing over from a shared linux hosting to a VPS server and all my webpages end in .phtml
Dreamweaver doesnt like .phtml files so id like to change my files to .html.
Question is on a linux server, how can I set up a 301 redirect from .phtml to .html
So to sum it up I want any link found in google to 301 redirect to the new.phtml extention and google to eventually replace the indexed pages in google with the new .html ones
Ive read on the site about a htaccess redirect?
Can someone tell me what i need to put in please
Posted 16 October 2010 - 08:03 AM
Posted 17 October 2010 - 05:51 AM
Thanks for taking the time to reply.
That httpd.config file is that a standard file I will find on my server?
When you say it wil parse it as php what exactly does that mean?
by adding .phtml will that just mean the server will recognise .phtml as a valid extension? If so that will do nicely rather than redirecting.
Look forward to your reply.
Posted 17 October 2010 - 03:15 PM
I cant find this httpd.config file anywhere.
I even redeployed the server and reinstalled Linux CentOS again and still that file is not there.
Is there any other way of doing it? I cant see any way to do it in Plesk either.
Posted 17 October 2010 - 04:48 PM
Ive been into every single folder and its not there :-(
Ive uploaded all my files but the site will only show if I change the extention from .phtml to .html
If I cant make it accept .phtml then is there a way to 301 it to the new .html extensions?
The site was ment to be live by the morning but im running out of time and its only this holding me back
Posted 18 October 2010 - 06:24 AM
I'm sure there is a way to tell Dreamweaver to handle new extensions as known ones (i.e. handle phtml as html)
I'm not 100% certain on that but it jogs a memory somewhere so it could be worth investigating - might save you a load of hassle.
Posted 18 October 2010 - 06:49 AM
Posted 18 October 2010 - 01:57 PM
httpd: /usr/sbin/httpd.event /usr/sbin/httpd.worker /usr/sbin/httpd /etc/httpd /usr/include/httpd /usr/share/man/man8/httpd.8.gz
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users