Clean links in iWeb?

Discussion in 'Web Design and Development' started by guyducati, Jan 30, 2010.

  1. guyducati macrumors regular

    Joined:
    Jan 28, 2010
    Location:
    Chicago IL currently, Tuscon AZ soon...
    #1
  2. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #2
    Take the contents of site_name and move them up a directory level.
     
  3. guyducati thread starter macrumors regular

    Joined:
    Jan 28, 2010
    Location:
    Chicago IL currently, Tuscon AZ soon...
    #3
    But every time I update iWeb, won't I have to keep moving the files? Also, that wouldn't remove the .html I want to be gone.
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    Depends how you place your files on the web host. If you publish to folder first you won't have that issue. As far as not having the .html part, that would require using some server side stuff. I idea I have only works on an Apache web server. Do you know what kind of server your host uses? MobileMe doesn't so you won't be able to do anything with that host.

    The solution for Apache would involve using a rewrite rule inside a .htaccess file. I haven't completely tested this.
    Code:
    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} ^[a-zA-Z0-9_/-]+$
    RewriteRule (.*) \1.html
     
  5. guyducati thread starter macrumors regular

    Joined:
    Jan 28, 2010
    Location:
    Chicago IL currently, Tuscon AZ soon...
    #5
    I have it set so that the folder which includes all of the iWeb files is uploaded to my /public_html folder.

    I use X10hosting which uses the cPanel interface.
     
  6. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #6
    iWeb doesn't allow you to specify how it uploads the site, so you'll either need to re-move the folders each time, or publish to a folder first then upload using another FTP program like Cyberduck. Just knowing your host doesn't tell me what web server it runs on. You'll need to check your cPanel or help files there to see what kind of server they have you on.
     
  7. guyducati thread starter macrumors regular

    Joined:
    Jan 28, 2010
    Location:
    Chicago IL currently, Tuscon AZ soon...
    #7
    Sorry, I don't think this will help you at all, but its all I can find about what kind of servers they use.

    I'll keep looking for more information.
     

    Attached Files:

  8. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #8
    Well, it's Linux and has PHP and MySQL so there's a 90% chance it's running on Apache, which means you can use the method I described above. Just place the text in a file and name the file ".htaccess" which is an invisible file and has no other extension and must stay that way. Upload that to the root of your site, the public_html folder. This file will need to be manually uploaded as iWeb won't have any interaction with it.
     
  9. ukie, Jan 15, 2011
    Last edited: Jan 15, 2011

    ukie macrumors newbie

    Joined:
    Jan 15, 2011
    #9
    iWeb Snow Leopard Server Clean URLs

    Same issue here.
    Currently my site URL is displaying http://ukie.ws/ukie/Ukie.html
    I want it display http://ukie.ws
    I had some help already but I'm stuck with this in my .htaccess file:

    Code:
    Options +FollowSymLinks
    
    RewriteEngine On
    
    RewriteCond %{REQUEST_URI} / [NC,OR]
    RewriteCond %{REQUEST_URI} !/favicon.ico
    RewriteRule .* ukie/ [L,R] 
    here is my file structure:
    [​IMG]

    As I understand, you must keep the iWeb file structure if you want rss feeds to work properly. So moving the ukie folder up is not an option.

    Any advice?
     
  10. NumeroTen macrumors member

    NumeroTen

    Joined:
    Aug 7, 2010
    #10
    Hi

    To take out the double name just change the name to the file that's what I did. I'll give you moremdetails when I get home later, but play ariund with that. For the html I personaloy keep it, but I do know a link I believe let me just look for it.
     
  11. ukie macrumors newbie

    Joined:
    Jan 15, 2011

Share This Page