url

URL Rewriting in asp.net loses stylesheet mappings.

i noticed that when using the URL re-writter out of iis 7.0 that the root url character "~" works correctly but when I re-write the url with the global.asax file, the files no longer map correctly. Why is this and what can I do to have all the files map properly when using global.asax to re-write urls? If URL.Contains("/myurl/") Then C...

Creating a RESTful API and website with PHP

I've got a PHP application I wrote earlier that I'd like to add a RESTful API to. I'd also like to expand the site to behave more like a Rails application in terms of the URLs you call to get the items in the system. Is there any way to call items in PHP in a Railsy way without creating all kinds of folders and index pages? How can I ca...

Url Rewrite issue in IIS MOD REWRITE

Hi, I have a below code in mod-rewrite.txt RewriteEngine On RewriteRule /\.htaccess$ - [F] RewriteCond %{HTTP_HOST} !www\.espireinfo\.com$ RewriteRule ^(.*)$ http://www\.espireinfo\.com$1 [R=301,L] RewriteRule ^/schools/index.aspx$ /schools/english-language.aspx [R=301,L] RewriteRule ^/about/Contact.aspx$ /about/contact.aspx [R=3...

google api feed like twitter

im tryin to integrate my twitter search with google so that the query will show both twitter and google feedback BUT does google have an search api like twitter does where it will be able to send me back a json feed then what is the url that i need to use like in the case of twitter we use search.twitter.com/search.json?q=twitter&cal...

URL and Query management Asp.Net C#

Ok so while back I asked question http://stackoverflow.com/questions/986598/beginner-asp-net-question-handling-url-link I wanted to handle case like this www.blah.com/blah.aspx?day=12&flow=true I got my answer string r_flag = Request.QueryString["day"]; Then what I did is placed a code in Page_Load() that basically takes these paramet...

Get a URL from a String

For a little while now I've been searching for a code to get URL's out of a string using PHP. I'm basically trying to get a Shortened URL out of a message, and then later do a HEAD request to find the actual link. Anyone have any code that returns URLs from strings? Thanks in advanced. Edit for Ghost Dog: Here is a sample of what I...

How do I create userfriendly urls like stackoverflow?

I want to create a similar type of url as stack overflow does when a question is created. Example: http://stackoverflow.com/questions/1149454/non-ajax-get-post-using-jquery-plugin I am particularly interested in the last part which I have highlighed in bold. How do you achieve the affect of adding the title of the page to the url with...

Why are some websites spread across www2, www3 sub-domains whilst others manage scaling without it?

I know it's to do with having a variety of load balancing servers, but why do some sites make use of differently named "www" sub domains (www2.somesite.com, www3.somesite.com etc) where as other can be perfectly massive without doing this - ie all traffic is to www.hugesite.com. Does it indicate certain architectural decisions / have a ...

What is the best column type for URL?

What is the best column type for a URL field for SQL Server? Type: VARCHAR or NVARCHAR? Length? Similar question for MySQL. ...

OpenID and URL Rewriting

Hi, I am having a problem implementing OpenID on my ASP.NET site. I have got OpenID to work well when the return URL ends in .aspx, however whenever i try and return it to a rewriten URL (http://example.com/return/ is really http://example.com/return.aspx) it doesn't work. How can i set the rewrite rule so that OpenID will work. I am ...

PHP & Hash / Fragment Portion of URL

I am trying to find a way to save the hash portion of a url and as a PHP variable. This idea is a bit kooky, but bear with me... I'd like to extract the "location" fragment from the following URL and save it as a PHP variable. http://www.example.com/#location However, discussion at this link indicates that the fragment of a URL is o...

Any way to specify absolute paths in FTP URLs?

I'm using the Java URL and URLConnection classes to upload an file to a server using FTP. I don't need to do anything other than simply upload the file, so I'd like to avoid any external libraries and I'm wary of using the non-supported sun.net.ftp class. Is there any way to use absolute paths in the FTP connection string? I'd like to p...

URL Querystring - Find, replace, add, update values?

We inherited some C# code as part of a project from another company which does URL redirects that modifies the existing query string, changing values of items, adding new params, etc as needed. The issue however is that the code is buggy at best, and ends up duplicating items in the query string instead of updating them properly. The co...

implement RESTFUL webservice with php

I need some better understanding on how to implement REST services with php From what I have read sofar, they say "use logical adresses" and preferably don't use get variables at all. What I don't see is how these url's are getting processed. Like www.somename.com/product and product is supposed to be not a physical address. I mean, y...

Dynamically adding variables to a URL using flex

In my Flex application I am able to read the variables using something like /flexapp.html?name=josh with no problems. However, this is because I go into the URL and type in the variables by hand. Is there anyway in the code to dynamically append the variable part "?name=josh" ? For example, like retrieving the url and then adding that...

Automatically determine the natural language of a website page given its URL

I'm looking for a way to automatically determine the natural language used by a website page, given its URL. In Python, a function like: def LanguageUsed (url): #stuff Which returns a language specifier (e.g. 'en' for English, 'jp' for Japanese, etc...) Summary of Results: I have a reasonable solution working in Python using cod...

how can I get the segments off the uri

Hello, My question and the thing that goes wrong is when I have two segments example: www.xxx.nl/products/id and I have this in the htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] is there a solution, or is this caust by the host thanks ...

Monitor a HTTPS connection with URL class (Java)

I would like to monitor a simple url. But when its a https server I get a handshake exception. Its possible to verify state of a https url the way browser use to connect? (without having a local certificate). I don't know how browsers do to get content from a https url but I would like to make it the same way. Without need to store a spe...

Absolute url in jsp

Hi, While including css, js and images in my jsps I am facing a problem resolving relative urls. The urls get changed on refreshing the page or clicking the back button. I suppose one solution to the problem would be to include external files by using absolute urls. But I can't find out how to use a reference to the relative url and use...

Should I store the connection scheme for an OpenID?

Should I store the connection scheme, http or https, for an OpenID when someone logs in into my web site? Or just what comes afterward: http://pupeno.com or pupeno.com? ...