The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> changing html to php
TLK
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
TLK
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 12 2011, 04:51 PM
Post #5


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(pandy @ Oct 12 2011, 10:57 PM) *

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. blush.gif
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Oct 12 2011, 04:57 PM
Post #6


.
********

Group: WDG Moderators
Posts: 9,653
Joined: 10-August 06
Member No.: 7



QUOTE(TLK @ Oct 12 2011, 09:15 PM) *

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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 19th April 2024 - 11:19 PM