SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Enthusiast nicbos's Avatar
    Join Date
    Sep 1999
    Location
    Biella, Italy
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re-designing a website

    Hello SPF poeple,

    i'd like to discuss with you the re-designing process of a website.

    I have used a lot in the past the SSI technique (.shtml pages) on my projects, to call external files and speed up the updating process of certain repetitive sections.

    Now i am going to refresh a couple of websites for my customers, and i'd like to use intensively PHP for coding my scripts, leaving off .shtml technique... PHP permits doing the same command (require or include) with many and many more functions that we already know.

    The question is: how about my "old" .shtml pages ??
    Have i to simply delete them ?

    What about SE indexing ?? Some SE has indexed a lot of internal pages, how can i prevent losing links from SE and from other websites ??

    Have i to keep those .shtml pages, using an http redirect to point to the new .php pages ?? but SE don't like redirects ....

    Have i to change the content only for the .shtml pages, making their internal links point to the new .php pages ?? (it is a never ending job i think).

    Just share your ideas, thanks.
    Nicola
    Free Mp3 Download and bonuses:
    http://www.nicolaboschetti.com/

  2. #2
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Assuming you are using Apache, you can set up an .htaccess file which redirects *.shtml to *.php without too much trouble.

    I think this should do it:
    Code:
    RedirectMatch (.*)\.shtml $1.php
    ----Adopt-a-Sig----
    Your message here!

  3. #3
    SitePoint Enthusiast nicbos's Avatar
    Join Date
    Sep 1999
    Location
    Biella, Italy
    Posts
    99
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello randem

    can that make the pages SE friendly ??
    You know that google or overture don't like redirects .....

    NicB
    Free Mp3 Download and bonuses:
    http://www.nicolaboschetti.com/

  4. #4
    morphine for a wooden leg randem's Avatar
    Join Date
    Jun 2002
    Location
    .chicago.il.us
    Posts
    957
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Okay... then another, slightly more devious plan... might be to do something like this:

    in .htaccess
    Code:
    <Files *.shtml>
    ForceType application/x-httpd-php
    </Files>
    and then just leave all the files with the .shtml extension, while migrating new files to the .php extension.

    how's that sound?
    ----Adopt-a-Sig----
    Your message here!

  5. #5
    SitePoint Addict noise's Avatar
    Join Date
    Sep 2002
    Location
    Sweden
    Posts
    251
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by nicbos
    Hello randem

    can that make the pages SE friendly ??
    You know that google or overture don't like redirects .....

    NicB


    what do you mean with "google dont like redirects"?


Bookmarks

Posting Permissions

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