Results 1 to 6 of 6

 

Thread: Php -> Html

  1. #1
    Frostie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Wirral
    Posts
    3,217
    Thanks
    61
    Thanked 60 Times in 27 Posts


    Does anyone know of a tool that will crawl my site, and create a HTML file based on the links its find, such as;
    http://www.mydomin.com/product_descr...php?prodid=123
    http://www.mydomin.com/product_descr...php?prodid=124
    http://www.mydomin.com/product_descr...php?prodid=125

    Then I can add these to my site map for, hopefully, bet PR rating?

  2. #2
    Can't Touch This

    Status
    Offline
    Join Date
    May 2004
    Location
    КРОМИДОВО
    Posts
    321
    Thanks
    3
    Thanked 0 Times in 0 Posts
    website mirror: http://www.httrack.com/

    creates static files from dynamic site.

    plenty of options to play with as well.

  3. #3
    Frostie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Wirral
    Posts
    3,217
    Thanks
    61
    Thanked 60 Times in 27 Posts
    Cheers for that, will take a look.

    I guess that mod-rewrite would also be the answer, but as never used it before not too sure.

    Will be playing (trashing) with my website tonight to see how it goes. I have found this which appears to be pretty straight forward;
    http://forums.searchenginewatch.com/showthread.php?t=95

  4. #4
    Can't Touch This

    Status
    Offline
    Join Date
    May 2004
    Location
    КРОМИДОВО
    Posts
    321
    Thanks
    3
    Thanked 0 Times in 0 Posts
    mod_rewrite is luvverly, and easy too, if you're going to get into rewriting, then give httrack a miss, and focus on simple rewrites, they're much more rewarding.

  5. #5
    Frostie's Avatar
    Moderator

    Status
    Offline
    Join Date
    Aug 2003
    Location
    Wirral
    Posts
    3,217
    Thanks
    61
    Thanked 60 Times in 27 Posts
    Well after 5 minutes, have almost got mod-rewrite working using the following in my .htaccess file;

    #begin mod rewrite
    RewriteEngine On
    Options +followsymlinks
    RewriteBase /

    # rewrite static to dynamic
    RewriteRule ^catalog/(.*)\.html$ /catalog.php?item=$1

    #end mod


    Now the links and files load without any problems, but the images don't? The problem is when the catalog/123.html page loads up, it tries to load the images as follows;
    catalog/images/table_bot.gif

    It should be loading them from;
    images/table_bot.gif

    Is there a simple mod I can make, or do I have to go through all my files and link directly to the images (http://www.mydomain.com/images/table_bot.gif) ?

  6. #6
    Driving to win

    Status
    Offline
    Join Date
    Aug 2003
    Location
    If I'm not at home, I'm in hospital
    Posts
    7,370
    Thanks
    7
    Thanked 16 Times in 11 Posts
    you could change your images links to
    ../images/bot.gif

    that should work too
    Never argue with idiots. They just drag you down to their level and then beat you with their experience.

    If ignorance is bliss then some of the people I know must be orgasmic.



Thread Information

Users Browsing this Thread

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

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
  •  
To Top

Content Relevant URLs by vBSEO 3.5.0 RC2