Results 1 to 6 of 6
  1. #1
    Full Member
    Join Date
    January 18th, 2005
    Posts
    297
    Ok I have just completed the migration of my mall site from HTML to PHP/MySQL. Promises to make my life easier when it comes to making updates, but I'm really really nervous about what the search engines will think of all this. I have a PR of 6 on my index page, must underpages are PR 5. Crossing my fingers and hoping for the best .

    If anybody has done a similar migration, I'd love to hear about it...

    Sal @ PHATBargains.com

  2. #2
    ABW Ambassador FFoc's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,015
    404!

    Made sure that the old .html pages are properly 404'g (or 302'g) to valid new pages, right?

    --
    "The greatest good you can do for another is not just to share your riches, but to reveal to him his own." – Benjamin Disraeli
    --
    Ford Fox-body Owners Club -- http://www.ford-fox.org

  3. #3
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Utah
    Posts
    1,141
    The best thing to do would be to use your existing page names (.html or whatever) and tell Apache to process those pages as PHP. That way, Google would never know the difference.

    Michael

  4. #4
    ABW Ambassador
    Join Date
    January 18th, 2005
    Location
    Honiara, Solomon Islands
    Posts
    1,085
    Add this line to the very top of your .htaccess file:

    <pre class="ip-ubbcode-code-pre"> AddType application/x-httpd-php .htm .html </pre>

    Hey presto!!! No PR loss, no traffic loss, full access to PHP.

    Alot of people advise to serve pages with no extensions using mod_rewrite to deal with correct page delivery. This allows you to have pages that are forward compatible with any future technology. The above example however achieves the same result with NO PAIN.

    <font face=verdana size=1 color=43639C>Know Google as you know yourself and you will live to fight many battles - Sun Tzu</font>

  5. #5
    Full Member
    Join Date
    January 18th, 2005
    Posts
    297
    Thanks for the suggestions guys. Need a clarification though. In order to process HTML files as PHP, I would need to keep everything the same (filename and directory structure). I need to change that though to take advantage of the MySQL database. Where before I had 150 files (one for each merchant), I now have just one file which is dynamically generated based on the "id" parameter supplied in the URL string. For example, before I had
    domain.com/store1.html
    domain.com/store2.html
    domain.com/store3.html etc etc

    Now I have
    domain.com/store.php?id=1,
    domain.com/store.php?id=2, and so on...

    I guess the only solution is to create redirects unless I'm missing something.

    Sal @ PHATBargains.com

  6. #6
    ABW Ambassador FFoc's Avatar
    Join Date
    January 18th, 2005
    Posts
    1,015
    use a rewrite rule..

    --
    "The greatest good you can do for another is not just to share your riches, but to reveal to him his own." – Benjamin Disraeli
    --
    Ford Fox-body Owners Club -- http://www.ford-fox.org

  7. Newsletter Signup

+ Reply to Thread

Similar Threads

  1. Php - Html
    By betherg in forum Programming / Datafeeds / Tools
    Replies: 7
    Last Post: January 7th, 2013, 10:59 AM
  2. Who to go to for html , php and css?
    By Mitty in forum Midnight Cafe'
    Replies: 3
    Last Post: May 21st, 2007, 12:31 PM
  3. Redirect html to php--2
    By frank3iii in forum Programming / Datafeeds / Tools
    Replies: 2
    Last Post: July 20th, 2004, 04:05 PM
  4. Redirect html to php
    By frank3iii in forum Programming / Datafeeds / Tools
    Replies: 5
    Last Post: July 19th, 2004, 08:32 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •