changing html to php |
changing html to php |
TLK |
Oct 12 2011, 02:15 PM
Post
#1
|
Group: Members Posts: 2 Joined: 12-October 11 Member No.: 15,609 |
Hello,
I am new to this forum and didn't look through it to see if this has already been discussed but I have built a number of sites over the past 2 years and when I began, I only knew html.... well this little miracle called php came to me one day and said it could really really REALLY cut down on my editing time by using included content! Much to my surprise, I came out of the dark and began a long lasting relationship with php and left html behind......... this is where it gets ugly: I have 1/2 my sites in html and they were all individually created with way to much repeating content and I don't want to have to edit it all to make 1 change. I have also created a program for my sites that obviously requires php. I want to switch my html sites to php but am afraid of losing page rank. My knowledge is really in graphics, not web design but I know enough to get the job done in a professional manner. My second question relating to the topic is: in all my sites, I have used index.html or php as a link back to the home page from let’s say the contact us page. Should I have been using the actual domain, <a href="http://www.mysite.com"> instead of <a href="index.php">? It only seems logical that this should be what I should have been doing, but I guess I never thought of it in this light.... Any suggestions would be great! Thanks TLK This post has been edited by TLK: Oct 12 2011, 02:16 PM |
pandy |
Oct 12 2011, 02:20 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
You can make the server parse HTML files for PHP, so you don't need to change extension and break links.
|
TLK |
Oct 12 2011, 03:00 PM
Post
#3
|
Group: Members Posts: 2 Joined: 12-October 11 Member No.: 15,609 |
and how do I do that? sorry, not familar with that.
|
pandy |
Oct 12 2011, 03:57 PM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,730 Joined: 9-August 06 Member No.: 6 |
In your .htaccess file. From the top of my head (better look it up, it's been a while).
CODE AddType application/x-httpd-php .php .html I've also seen AddHandler being used. I don't know if one has an advantage over the other. Hopefully someone else can chime in. CODE AddHandler application/x-httpd.php .php .html |
Christian J |
Oct 12 2011, 04:51 PM
Post
#5
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
I've also seen AddHandler being used. I don't know if one has an advantage over the other. Hopefully someone else can chime in. There's an old discussion here: http://forums.htmlhelp.com/index.php?showt...&hl=addtype --afraid I haven't learned anything new since then. |
Christian J |
Oct 12 2011, 04:57 PM
Post
#6
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
My second question relating to the topic is: in all my sites, I have used index.html or php as a link back to the home page from let’s say the contact us page. Should I have been using the actual domain, <a href="http://www.mysite.com"> instead of <a href="index.php">? See http://webtips.dan.info/subdir.html#LinkHome |
Lo-Fi Version | Time is now: 23rd April 2024 - 06:25 PM |