Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: ASP.NET VBScript Javascript CSS , +
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?
Posted 11-Aug-09 17:49pm
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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

[thumbs up]

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 6

Since you tagged this with ASP.NET, I thought I'd mention that default.aspx acts like index.html in that you can just point to the parent directory and the default.aspx page in that directory will automatically be used.
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Try URLRewriting

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

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

  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 5

If you're using asp.net, try to remap the url in web.config file
or
write a url remapper module which can work for complete solution.
  Permalink  
  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 OriginalGriff 120
3 PIEBALDconsult 110
4 Zoltán Zörgő 99
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,087
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,294


Advertise | Privacy | Mobile
Web02 | 2.8.141220.1 | Last Updated 19 Mar 2010
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100