url

Problem with similar rules IIS 7 Rewrite

I have 2 similar rewrite rules, that is killing each other. These are my rules: <rule name="Product rewrite"> <match url="^product/([_0-9a-z-]+)/([0-9]+)" /> <action type="Rewrite" url="product.asp?id={R:2}" /> </rule> <rule name="Article rewrite"> <match url="^([_0-9a-z-]+)/([0-9]+)" /> <action type="Rewrite" url="article.asp?id={R:2...

Apache Common UrlValidator does not support unicode. alernative is avaliable?

i try to url validation. but UrlValidator is does not support unicode. here is code public static boolean isValidHttpUrl(String url) { String[] schemes = {"http", "https"}; UrlValidator urlValidator = new UrlValidator(schemes); if (urlValidator.isValid(url)) { System.out.println("url is valid"); return true; ...

Regex Pop Quiz Question of the Day

Suppose I want to turn this : http://en.wikipedia.org/wiki/Anarchy into this : en.wikipedia.org or even better, this : wikipedia.org Is this even possible in regex? ...

Determine if a URL is in the header/footer of a web page given URL, page DOM, parent URL and other page URLs.

Given a URL, the URL of the webpage that first URL is on, the DOM of the webpage, and a list of the rest of the URLs on the webpage how can I reliably determine if the URL is in the header/footer of the page or if it's in neither? I'm using C#/.NET. I know that no solution is perfect since webpages are not semantically expressed and al...

can i capture the current/all tabs URL with javascript/jquery or would I need to make a plugin

I want to be able to capture the current url and/or the url of all open tabs. Can I do this in JavaScript or JQuery or am I going to need a plugin in FireFox/Chrome ...

asp.net: refer to a page relative to root in normal non-server-side html controls

I've a page that is deeply nested. And one that is in the root path. Inside of the deeply nested page I have an anchor tag which is supposed to navigate to another page (which is not in the root, but it is easy to specify a root relative path). I've done the following trying to specify a root relative path: <a href="~/home/main.aspx">H...

How do I HTML-/ URL-Encode a std::wstring containing Unicode characters?

Hi, I have another question yet. If I had a std::wstring looking like this: ドイツ語で検索していてこちらのサイトにたどり着きました。 How could I possibly get it to be URL-Encoded (%nn, n = 0-9, a-f) to: %E3%83%89%E3%82%A4%E3%83%84%E8%AA%9E%E3%81%A7%E6%A4%9C%E7%B4%A2%E3%81%97%E3%81%A6%E3%81%84%E3%81%A6%E3%81%93%E3%81%A1%E3%82%89%E3%81%AE%E3%82%B5%E3%82%A4...

Google maps API(dynamic): plot multiple locations via URL, showing custom markers.

I have successfully implemented code to plot multiple locations on google maps dynamically. Solution: (link) I am trying to create customized labels, like this: http://www.codeproject.com/KB/scripting/Use_of_Google_Map/ex7.JPG using Tom Morgan's marker: http://abhi2434.googlepages.com/tlabel.2.05.js adapted with this code below. (!...

URL rewrite in smarty based website?

I wanted to achieve this example.com/search_results/?action=search&username[equal]=PorscheSA to example.com/PorscheSA I have used .htaccess for many websites to achieve this, but since this website is smarty based, it doesn't seem to work. Any help will be much appreciated. Ok, this is the .htaccess file: RewriteCond %{HTTP_HOS...

Google Image Search request URL - more than 21 results

Hi Is there are a way to get more than 21 results on Google Image Search FIRST PAGE. It seems the parameter &num is also limited to 21. Thanks for helping ...

Impact of multilingual URLs on SEO

Do I need to use multilanguage in my URLs? For example: http://mygermanwebsite.example/product/foo http://mygermanwebsite.example/produkte/ Does that have any effect on Google searches? For example I'm searching for "produkte", will both versions have the same ranks on Google searches? ...

Extract part of URL

I have an URL and need to extract a part of it. The url is like this: http://website.com/get.php?url=http://www.website2.com/index.html?articleID=123456 And I need to extract this part: http://www.website2.com/index.html?articleID=123456 How would I do this in Objective-C? ...

url regex without http://www.

i need a url regex which validates the url string without http://www. or https://www. any ideas? ...

restrict the user from jumping controller and action methods

Folks: My ASP.NET MVC 1.0 application is more like a workflow. Means: Parent controller's action method (authentication) --> Child 1 Action method --> Child 2 Action method --> Child n Action Now once the visitor completes the Authentication through the parent controller's action method he can manupulate the URL and jump directly to t...

How to create a specific URL for a user during registration?

How can I do this in MySQL? When a user creates an account on a website, I want a profile URL to be created for him/her. For example: http://www.domain.com/profile.php?id=111101, the next user's URL may be: http://www.domain.com/profile.php?id=111102 Will I have to set Auto Increment? Some of the fields I do save during the user's regi...

PHP tags in URL

So I made a landing page for all these forms that the marketing department at my work makes. One of the fields they pass is a URL that I redirect to after I'm done processing - a thank you page. Recently, I discovered a URL that looked like this: http://www.oursite.com/folder/thank-you.php?thankyou=free-guide&amp;amp;adgroup=&lt;?php e...

Youtube video download URL

Hi I wrote a program that gets youtube video URL and downloads it Up today I did this: 1. get video "token" from "/get_video_info?video_id=ID" like: http://www.youtube.com/get_video_info?video_id=jN0nWjvzeNc 2. Download Video by requesting it from "/get_video?video_id=ID&t=TOKEN&fmt=FORMAT_ID" like: http://www.youtube.com/get_v...

django URL reverse: When URL reversig a username it fails when username has a '.' literal in it

I didn't expect this to occur [since I didn't know when django changed to allow _ and . in usernames], but when I attempt {% url feed_user entry.username %} I will get a 500 error when the username contains a '.' In this case rob.e as a username will fail. Any ideas how to deal with this? ...

How to use javascript or jquery to retrieve parameters from the url?

I have a url that looks like: http://www.my-site.com/#key=kj123asj. I would like to retrieve key using javascript. Any help is appreciated. ...

How to retrieve access_token from the url.

Hi, I am new to cakephp, I want to retrieve the access_token from this url. http://www.my-site.com/#access_token=116122545078207|2.1vGZASUSFMHeMVgQ_9P60Q__.3600.1272535200-500880518|QXlU1XfJR1mMagHLPtaMjJzFZp4. I tried using $this->params['url']. I am not able to get the access_token. I appreciate any help. ...