Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
Reflects user activity within the last 5 minutes
Moderator(s): g1smd, Logan
Member Message

accelerate
Joined: Mar 13, 2005
# Posts: 17

View the profile for accelerate Send accelerate a private message

Posted: 2006-Mar-11 13:37
Edit Message Delete Message Reply to this message

I want to make my static web site dynamic. And i don't want to lose my google PR.

So i decided to convert old htm files to php then i'll convert their name to htm with re write mode thus i think i don't lose my old pages google PR.

But i am wonderin index.htm files status when the domain name entered. Is it shows directly index.php which is in the host or is it shows index.htm which is convertted with re write mode ?

if it shows php file how can i configure domain name to linked to index.htm?

Thanks



[ Message was edited by: accelerate 03/12/2006 04:16 am ]





g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465

View the profile for g1smd Send g1smd a private message

Posted: 2006-Mar-11 19:13
Edit Message Delete Message Reply to this message

You do NOT need a rewrite.


You simply need to parse HTML files as if they contain PHP code.

Keep the filenames and extensions all the same.

Add one line of instructions to the server configuration to allow HTML files to be parsed as containing PHP.



accelerate
Joined: Mar 13, 2005
# Posts: 17

View the profile for accelerate Send accelerate a private message

Posted: 2006-Mar-12 12:14
Edit Message Delete Message Reply to this message

Thanks, but

i think i can't configure server because site on a hosting service. So i decided to use re write mode ... Only i want to know is domain name follows htaccess file first or diretcly looking for index.php which is in main directory ...



g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465

View the profile for g1smd Send g1smd a private message

Posted: 2006-Mar-12 18:12
Edit Message Delete Message Reply to this message

If you are able to add rewrite commands to the .htaccess file, then you could have also put the required server-parsing commands in there too.



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1829

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-13 04:43
Edit Message Delete Message Reply to this message

accelerate - You would decelerate the server by using a rewrite for this. ;)
As g1smd has pointed out, your htm pages can be parsed as PHP by adding one line like so:


Code: [copy]





So your default page served - index.htm can be retained as it is.



accelerate
Joined: Mar 13, 2005
# Posts: 17

View the profile for accelerate Send accelerate a private message

Posted: 2006-Mar-17 10:54
Edit Message Delete Message Reply to this message

Thank you Prowler,

but i can't configure this code... Should this code on htaccess or php file ?





g1smd
Staff
Joined: Jul 28, 2002
# Posts: 10465

View the profile for g1smd Send g1smd a private message

Posted: 2006-Mar-17 12:13
Edit Message Delete Message Reply to this message

It goes in the .htaccess file.



accelerate
Joined: Mar 13, 2005
# Posts: 17

View the profile for accelerate Send accelerate a private message

Posted: 2006-Mar-19 13:49
Edit Message Delete Message Reply to this message

Thank you. I understand,

but after i made this changes in all html files will google track this php codes or output codes?



Prowler
Staff
Joined: Aug 14, 2000
# Posts: 1829

View the profile for Prowler Send Prowler a private message

Posted: 2006-Mar-20 04:20
Edit Message Delete Message Reply to this message

Google or for that matter no one else will see the actual PHP codes. All they will see is the output code.


You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions