I am running an IIS 7.5 site that serves up content for http://www.foo.com/
I've been asked to properly route http://www.foo.com./ (note the trailing dot). If you hit that page now, you'll get an IIS error:
Bad Request - Invalid Hostname
HTTP Error 400. The request hostname is invalid.
This happens even for http://www.micro...
Hi there,
I have a web page with a link to a url eg./customer/showitem?id=7, which displays details of a specific customer in a child-window using method showitem() in class customer. The method may set the value of a customer class attribute that controls an alert which is displayed when the page is loaded (eg. self.onloadalert="Warni...
Hello
I want to get the current URL using javascript/jquery. The URL should include subfolders/subsites in the path but not the page or any other query parameters.
Examples
http://test.com/site1/folder/abc/test.aspx
Output : http://test.com/site1/folder/abc/
http://test.com/site1/folder/abc/test.aspx?id=1&name=xyz
Output : htt...
How to dynamically increse the lentgh of the url ?
let me more descriptive. I want to use it in asp.net version 2.0 and 3.5. The maximum length of the url in (IE 7 +) is 2048.
Various size support in different browsers (http://www.boutell.com/newfaq/misc/urllength.html )
IE 7 + - 2048
Firefox - 65000
Safari - 80000
Opera - 190000
...
Hi. I'm developing a game fansite to learn CodeIgniter that includes a database of character information. I want to use this URL format:
http://www.mydomain.com/characters/joe
http://www.mydomain.com/characters/sam
So I have a controller called characters. If I understand the CI documentation, I can only parse "joe" and "sam" in t...
I am developing a webshop and I'm making it SEO friendly, so I use urlRewrite to have a "nice" and "clean" URL.
I am having products in categories, and I'm having filters for products search.
I would like to have something like:
www.website.com/motor-oils/filters/volume-1L/weight-4Kg/price-500/
i would use the following rule:
Rewri...
So for security reasons, I want to disallow http://www.domain.com/directory/ but allow that physical directory only through http://subdomain.domain.com/directory/
The simple way would be to just move the directory, but I can't do it because it breaks the application, so how would I do this with .htaccess?
I've temporarily blocked it u...
i have a dataset that looks like this:
Bin Frequency
6.0 0
5.9 0
5.8 0
5.7 0
5.6 0
5.5 0
5.4 0
5.3 0
5.2 0
5.1 0
5.0 0
4.9 0
4.8 0
4.7 0
4.6 0
4.5 0
4.4 0
4.3 0
4.2 0
4.1 0
4.0 0
3.9 0
3.8 0
3.7 0
3.6 0
3.5 0
3.4 2
3.3 4
3.2 2
3.1 2
3.0 4
2.9 5
2.8 5
2.7 1
2.6 0
2.5 1
2.4 1
2.3 2
2.2 3
2.1 1
2.0 0
1.9 1
1.8 0
1.7 1
1.6 1
1.5 1
1.4 0
1.3...
Are the following opening/closing tags necessary for .htaccess mod_rewrite's? I've had .htaccess working without those, but just checking up on htaccess tutorials, many include this tag.
<IfModule mod_rewrite.c> ... </IfModule>
...
I've delved into Regular Expressions for one of the first times in order to a parse a url. Without going into too much depth, I basically want friendly urls and I'm saving each permalink in the database, but because of differences in languages and pages I only want to save one permalink and parse the url for the page and language. So if ...
I have a friend that I'm helping out with some web design. Basically, the guy owns a few businesses that are all complementary of each other and he wants to combine them all into a single site. There's service A and B, based on the west side of our state; and service A and B based on the east side. Each has their own website (eg, east...
Hi,
I have an application which I'm developing in GWT.
I've noticed that sometimes (I'm not sure it happens all the time) after compiling, and generating a new version, if I will try to access my program's URL from IE8 it will result in a 404 in my eclipse log.
I think this is because the browser caches the actual 1232dfsfda.html URL and...
I'm using BitmapFactory.decodeStream to load an image from a url in Android. I want to only download images below a certain size, and I'm currently using getContentLength to check this.
However, I'm told that getContentLength doesn't always provide the size of the file, and in those cases I would like to stop the download as soon as I ...
I'm implementing a custom URL handler in .NET. To test this, I have created a few different .url files and put them on my Desktop. This generally works fine, but behaves oddly if I change the file's contents, specifically the URL= line. Doing so has no effect — the old URL continues to be opened. Renaming the file, however, works. The fi...
I want to check if a given URL exists and it's an image, in order to create a new Image(String url) from it. If the given URL is not an image then it should return an error.
...
Hi all,
I'm loading images from url into webviews but that's showing me images which are cut down. I tried doing sizeToFit, but that shows a very small image cornered at left in my webview as the webage is large and image at its upper left corner.
EDIT:
This' how I'm loading images in webview. Here, expanded_photo is webview.
NSStr...
So I worked with Django for a bit and understand regex rudimentary.
I know if there is request it "maps"(not sure what that means) the urls to a certain definition in the view.
That is clear and understandable for one page.
But what if I want to design a urlpattern for multiple pages and/or the whole website.
I dont understand that...
I need to send some of my data into another server. Actually to post into facebook. So here i already have an API which works by an URL.
So if i set the parameters from the URL and if i try it in web browser it works. But when i try it as a AJAX call it do not work. (Because its not hosted in the same server as my web pagers are).
Is t...
I want to basically run an url which i would be generating behind the scenes without actually displaying it in browser to user...i guess i could use HTTPWebRequest or maybe something similiar to curl?...but i need to really just basically visit/run the generated url? how can i do that ?
...
Hi,
I thought I have URL routing under control as it works well on one website but found out it is not working fine on another. Both websites run from same server, same IIS 6.0, same asp_isapi.dll.
SETUP 1: This one works well:
routes.MapPageRoute("Article SEO",
"sid/{sid}",
...