Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. How to name a URL

How to name a URL

Scheduled Pinned Locked Moved Web Development
questionhtmltutorial
5 Posts 5 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Razanust
    wrote on last edited by
    #1

    I want to name my website as www.abc.edu.pk/xyz But i was told that it can only be named as www.abc.edu.pk/xyz.html How can i name it the first way?

    N L M A 4 Replies Last reply
    0
    • R Razanust

      I want to name my website as www.abc.edu.pk/xyz But i was told that it can only be named as www.abc.edu.pk/xyz.html How can i name it the first way?

      N Offline
      N Offline
      nickmaroulis
      wrote on last edited by
      #2

      if you are using apache look up mod rewrite redirect all requests to a base page and build your pages from there abc.com/car/toyota/2 you would split the string type = car make = toyota page = 2 and use those values to build your page ***************************************************** if you are using static html pages you can do it crudely you could use a folder for each page and put an index.html inside it eg the file cars.html could be stored as /cars/index.html when abc.com/cars is requseted it will show /cars/index.html with a clean URL

      1 Reply Last reply
      0
      • R Razanust

        I want to name my website as www.abc.edu.pk/xyz But i was told that it can only be named as www.abc.edu.pk/xyz.html How can i name it the first way?

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Try URLRewriting

        Regards Aman Bhullar www.arlivesupport.com[^]

        1 Reply Last reply
        0
        • R Razanust

          I want to name my website as www.abc.edu.pk/xyz But i was told that it can only be named as www.abc.edu.pk/xyz.html How can i name it the first way?

          M Offline
          M Offline
          Marc Firth
          wrote on last edited by
          #4

          I thought I might also add if you directory index is "index.html" (i.e when you type www.yourdomain.com you end up looking at http://www.yourdomain.com/index.html) then you can also achieve the same thing with sub folders. eg: www.yourdomain.com/yourfolder www.yourdomain.com/yourfolder/index.html should be the same location. On IIS I believe the default directory index is default.html instead of index.html

          Neonlight

          1 Reply Last reply
          0
          • R Razanust

            I want to name my website as www.abc.edu.pk/xyz But i was told that it can only be named as www.abc.edu.pk/xyz.html How can i name it the first way?

            A Offline
            A Offline
            Abhishek Sur
            wrote on last edited by
            #5

            MVC applications does so using URL rewriting. Hope that approach is good for you. :thumbsup:

            Abhishek Sur


            My Latest Articles **Create CLR objects in SQL Server 2005 C# Uncommon Keywords Read/Write Excel using OleDB

            **Don't forget to click "Good Answer" if you like to.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups