how to create [ domain . com / file-no-dot ] ?

Discussion in 'C#' started by JJnacy, May 3, 2009.

  1. #1
    usually we use [ domain . com / folder / ] it works fine.
    but [ domain . com / folder ] not works fine every time.

    my question is

    how to create no [ / ] at the end of URL ?

    and

    how to create [ domain . com / file-no-dot ] so we do not need to put [ / ] at the end of URL ?


    Thanks
    Regards,
     
    JJnacy, May 3, 2009 IP
  2. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #2



    domain.com - will load the defaults docs on the root folder.
    doman.com/dir - will load the default docs inside the 'dir' folder.
    domain.com/dir/ - will load the default docs inside the 'dir' folder.

    Can you please be more clear where exactly you are using these paths?
     
    Talker, May 3, 2009 IP
  3. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I have seen some sites

    are using domain.com/file , and the file name has no extension.

    how to do that?
     
    JJnacy, May 4, 2009 IP
  4. Talker

    Talker Notable Member

    Messages:
    2,795
    Likes Received:
    108
    Best Answers:
    0
    Trophy Points:
    210
    #4
    Which server do you have? Linux or Windows?

    This tencho is called "URL Rewrite". On Linux/Apache we use Mod_rewrite on the .htaccess file. See this guide.

    And on Windows, as long as you use one of the mod_rewrite cousins for IIS (iis_rewrite, isapi rewrite), the method will be mostly the same for IIS as it will for Apache. Do remember that the place you insert the rules will depend on which software you're using (you won't be putting them into httpd.conf or .htacess). But the rule generation pretty much sticks either way.

    Check out both: introduction to mod_rewrite
    And: mod_rewrite Documentation


    Hope my answer helps you. :cool:
     
    Talker, May 4, 2009 IP
  5. JJnacy

    JJnacy Peon

    Messages:
    448
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #5
    does it also call URL rewriting ?

    http://forums.digitalpoint.com/showthread.php?t=1332683

     
    JJnacy, May 5, 2009 IP