how its working url with out having any extention

Posted by Karthikreddy under ASP.NET on 9/20/2013 | Points: 10 | Views : 962 | Status : [Member] | Replies : 10
hi

how its working below url
www.codeproject.com/Articles/656093/Connecting-MongoDB-with-ASP-NET

its not showing any extension like .aspx or php
and if we remove the Connecting-MongoDB-with-ASP-NET from the url and refresh the page http://www.codeproject.com/Articles/656093/
then also its going to same page

what is the logic behind this

thanks

k@rth!k
karthikreddy08a50@gmail.com



Responses

Posted by: Bandi on: 9/20/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Under articles the article will be unique for each article.. so whenever you haven't enter article name then also it redirects page based on article ID by using some mechanisms such as URL rewriting and so on...

Refer this link for knowing "Some urls do not include file extension"
http://stackoverflow.com/questions/3631153/how-come-some-site-urls-do-not-include-a-file-extension

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 9/20/2013 [Member] Starter | Points: 25

Up
0
Down
ok why its not showing any extension like aspx or php

k@rth!k
karthikreddy08a50@gmail.com

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Allemahesh on: 9/20/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Dear Karthik,

This is implemented by using Url Rewriting with ASP.NET.
You can gothrough below link:-
http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewriting-with-asp-net.aspx
http://msdn.microsoft.com/en-us/library/ms972974.aspx
http://www.hanselman.com/blog/RedirectingASPNETLegacyURLsToExtensionlessWithTheIISRewriteModule.aspx
http://urlrewriter.net/

Happy Coding
If it helps you or directs U towards the solution, MARK IT AS ANSWER

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Jayakumars on: 9/20/2013 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

karthi

may be implemented url rewriting for this

Mark as Answer if its helpful to you

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/20/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Please look into my first post...
I have edited post Posted on: 9/20/2013 3:16:40 AM

Refer this too to understand the SEO optimization technique
http://www.webmasterworld.com/forum30/31966.htm

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 9/20/2013 [Member] Starter | Points: 25

Up
0
Down
ok thanks to all
and i have another doubt

in my project we have two folders like employee and hr
i want set default page for each folder like ..hr/hrhome.aspx and ..employee/employeehome.aspx
if i enter url like localhost/hr it has to redirect to hrhome same like for employee also
how it posible

k@rth!k
karthikreddy08a50@gmail.com

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/20/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
May be like this
Reference: http://msdn.microsoft.com/en-us/library/540y83hx(v=vs.100).aspx
Response.BufferOutput = true;

if (UserLanguage == "English")
{
Response.Redirect("http://www.microsoft.com/gohere/look.htm");
}
else if (UserLanguage == "Deutsch")
{
Response.Redirect("http://www.microsoft.com/gohere/look_deu.htm");
}
else if (UserLanguage == "Español")
{
Response.Redirect("http://www.microsoft.com/gohere/look_esp.htm");
}


Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/20/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Reference: http://msdn.microsoft.com/en-us/library/ms178140(v=vs.100).aspx
-- Alternate is to use postbackurl
<asp:Button 

ID="Button1"
PostBackUrl="~/TargetPage.aspx"
runat="server"
Text="Submit" />


Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Karthikreddy on: 9/20/2013 [Member] Starter | Points: 25

Up
0
Down
hi,
sorry for lot of questions

http://www.dotnetfunda.com/forums/thread16355-how-its-working-url-with-out-having-any-extention.aspx

while i am posting in forums it asks for title .that title came in url like how-its-working-url-with-out-having-any-extention.aspx

this mean dynamically creating a web page for each post or any other login behind this ?

k@rth!k
karthikreddy08a50@gmail.com

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Bandi on: 9/20/2013 [Member] [MVP] Platinum | Points: 25

Up
0
Down
Dynamically creating a web page and forming URL by using thread id and thread title

Mark This Response as Answer
--
Chandu
http://www.dotnetfunda.com/images/dnfmvp.gif

Karthikreddy, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response