Jump to content

  • Log in with Facebook Log in with Twitter Log In with Google      Sign In   
  • Create Account

Subscribe to HRA Now!

 



Are you a Google Analytics enthusiast?

Share and download Custom Google Analytics Reports, dashboards and advanced segments--for FREE! 

 



 

 www.CustomReportSharing.com 

From the folks who brought you High Rankings!



Photo
- - - - -

301 Redirect Confirmation


  • Please log in to reply
9 replies to this topic

#1 seoisgod

seoisgod

    HR 3

  • Active Members
  • PipPipPip
  • 105 posts

Posted 15 October 2010 - 03:25 PM

Hi guys,

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 smile.gif

cheers

Dean

#2 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,718 posts
  • Location:Blackpool UK

Posted 16 October 2010 - 08:03 AM

No need for redirects, just open httpd.conf and add .phtml to the list of extensions to be parsed as PHP

#3 seoisgod

seoisgod

    HR 3

  • Active Members
  • PipPipPip
  • 105 posts

Posted 17 October 2010 - 05:51 AM

Hi Chris,

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.

Dean

#4 seoisgod

seoisgod

    HR 3

  • Active Members
  • PipPipPip
  • 105 posts

Posted 17 October 2010 - 03:15 PM

Hi,

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.

Cheers

#5 Ron Carnell

Ron Carnell

    HR 6

  • Moderator
  • 968 posts
  • Location:Michigan USA

Posted 17 October 2010 - 04:25 PM

http://www.centos.or...che-config.html smile.gif

#6 seoisgod

seoisgod

    HR 3

  • Active Members
  • PipPipPip
  • 105 posts

Posted 17 October 2010 - 04:48 PM

Hi thanks for that but the file does not exist.

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 sad.gif

#7 Jill

Jill

    Recovering SEO

  • Admin
  • 33,244 posts

Posted 18 October 2010 - 06:17 AM

Check with your server company on how to do it.

#8 rolf

rolf

    HR 6

  • Active Members
  • PipPipPipPipPipPip
  • 675 posts
  • Location:Suffolk UK

Posted 18 October 2010 - 06:24 AM

QUOTE
Dreamweaver doesnt like .phtml files so id like to change my files to .html.


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.

#9 chrishirst

chrishirst

    A not so moderate moderator.

  • Moderator
  • 7,718 posts
  • Location:Blackpool UK

Posted 18 October 2010 - 06:49 AM

httpd.conf there's is no 'ig' on the end of it and you should find it in /etc/httpd/ you will probably need to logon via SSH to edit it.


#10 seoisgod

seoisgod

    HR 3

  • Active Members
  • PipPipPip
  • 105 posts

Posted 18 October 2010 - 01:57 PM

hi chris, ive downloaded putty and i search by typing whereis httpd.conf but comes up with the following

httpd: /usr/sbin/httpd.event /usr/sbin/httpd.worker /usr/sbin/httpd /etc/httpd /usr/include/httpd /usr/share/man/man8/httpd.8.gz

Any ideas?




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

We are now a read-only forum.
 
No new posts or registrations allowed.