SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    VICTORY IS MINE! luchazard's Avatar
    Join Date
    May 2001
    Location
    USA
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help! Ad Rotator Problem...

    Hello,

    I've gone to www.hotscripts.com and www.cgi-resources.com to look for a good ad-rotator for my website. The problem is that I have to change the page that I want the ads rotated on to .shtml, that's all fine and good but the page I want ads rotated on is my index page... if I changed the ending from index.html, to index.shtml would the page still load when a visitor went to www.mysite.com?????

    I would prefer a script that could work without havbing to change the .html to .shtml but I don't know if that is possible if it is please tell me. Thanks!

  2. #2
    SitePoint Evangelist thewitt's Avatar
    Join Date
    Apr 2001
    Posts
    468
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Depending on the DirectoryIndex (in Apache) definition, and if server side incliudes are enabled on your site, yes index.shtml would load when www.mysite.com is entered. If it's not set up by default, you can add or modify your .htaccess file and enable this (assuming SSI is enabled).

    If people have bookmarked your index.html page, they will get a 404 error if you remove it.

    You can change the html extension to be processed as an shtml file - though there is some performance penalty for doing so.

    You could also put in a redirect statement in your .htaccess file if people have bookmarked your index.html page, and this would send them to the index.shtml page instead.

    -t

  3. #3
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure if you're using Apache, but the easies answer maybe to rename your index.html to index.shtml. Then remove the content from your index.html and enter something like this -
    Code:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <html><head>
    <meta http-equiv="Refresh" content="0;url=http://www.mysite.com/index.shtml">
    <title></title></head><body></body></html>
    Or just ask your provider to enable SSI for .html
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com

  4. #4
    VICTORY IS MINE! luchazard's Avatar
    Join Date
    May 2001
    Location
    USA
    Posts
    229
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Would Search Engines still index the main page as www.mysite.com or would they index it as www.mysite.com.index.shtml? Oh and what is apach?

  5. #5
    SitePoint Wizard westmich's Avatar
    Join Date
    Mar 2000
    Location
    Muskegon, MI
    Posts
    2,328
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Not sure, but they may index it as yoursite.com or yoursite.com/index.html or yoursite.com/index.shtml. It doesn't make any difference, though, because they all point to the same file.

    Apache is a Web server, but there are other Web servers used by hosting companies. It porcesses the server includes. It would be beneficial if you can find out what platform you're being hosted on (Unix, Linux, Windows NT, or Windows 2000) and what type of Web server they're running (Apache, IIS 4 or 5, or something else). It will come again in other projects or as you develop server-side development skills.
    Westmich
    Smart Web Solutions for Smart Clients
    http://www.mindscapecreative.com


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
  •