Results 1 to 5 of 5

Thread: HTML to PHP

  1. #1
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default HTML to PHP

    I am redesigning my website and am moving all pages to .php.

    However, I need to keep some of the old pages available to view.

    The problem is the old pages (a lot of them!) have the old navigation which redirects to .html pages.

    What will be the best course of action?

    I don't mind if the old navigation is redirected to the index.php page. Maybe using a script of somesort?

    Thanks

  2. #2
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    Is your old navigation inside one included html file, or have you seperate instances of it on every page?  I must admit I'm not entirely sure what it is you are requiring, are these html files going to be kept as-is, to be some sort of archive, and are the links in their navigation to these old files only? Is your problem that the navigation includes parts of the new site, the homepage etc. and you want just these select ones changing to the php equivalent?

    Bulk find/replace would probably get round most eventualities. I don't know what editors on windows have this sort of functionality. I use BBEdit on the mac which allows bulk find/replace using regular expressions, which can be an absolute bonus.

  3. #3
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    I suppose I should have explained myself more.

    The new design will link to an archive of match reports.

    These match reports are inside the old design and all include the navigation which links to .html files. My new design all use .php and thus if the users clicks on the links inside the archive (.html) they would be given a "Page Can not be found error, 404".

    Maybe a custom error page would do it?

    Or just some form of redirect?

    Hope that makes more sense.

  4. #4
    Join Date
    Mar 2005
    Location
    Isle of Man
    Posts
    1,261
    Thanks
    3
    Thanked 24 Times in 24 Posts

    Default

    Quote Originally Posted by JamesU2002
    I suppose I should have explained myself more.

    The new design will link to an archive of match reports.

    These match reports are inside the old design and all include the navigation which links to .html files. My new design all use .php and thus if the users clicks on the links inside the archive (.html) they would be given a "Page Can not be found error, 404".

    Maybe a custom error page would do it?

    Or just some form of redirect?

    Hope that makes more sense.
    What I want to know is, these links in the archive to .html pages, have these old html pages been directly replaced by new .php files, in which case it would make sense just updating all the links - easy if you can do a bulk find/change, or if the menu is in an included file. If the links are to dissued html files, then a custom 404 would make most sense to me.  It's always nice to have a custom 404 anyway, maybe with your site map or some search options on.
    kind of thing lol.

  5. #5
    Join Date
    Dec 2005
    Posts
    189
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks for the help Nick.

    I think I'll stick with an easy Custom Error page.

    I shall a put a little note on the Archive page to let users know the links inside the Archived Match Reports will direct them back to the homepage.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. HTML Email Stationery
    By s80wkr in forum HTML/CSS/JavaScript
    Replies: 5
    Last Post: 29th December 2009, 11:27 PM
  2. HTML: Custom Helm Login Form
    By Warren Ashcroft in forum Code Sharing
    Replies: 17
    Last Post: 28th September 2006, 02:33 PM
  3. Converting plain characters to HTML
    By Rappie in forum Web Applications and Scripts
    Replies: 3
    Last Post: 13th June 2006, 07:46 PM

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
  •