url

Keep or discard "www" when saving URLs?

Hello, I'm creating an application in PHP5 that needs to store a unique URL for a website. For example, if a user enters "http://www.google.com/" ill store it in the DB as "google.com" after parsing it. Basically I need a consistent convention for URLs so that there aren't multiple entries for the same site. Basically, is it ok to be ...

How can I get my ASP.NET website to allow the pipe character in the URL?

This website http://www.donateblood.com.au does not accept the pipe character | in the URL This works http://www.donateblood.com.au/news-events.aspx?IDDataTreeMenu=33 but this doesn't http://www.donateblood.com.au/news-events.aspx?IDDataTreeMenu=33&y=| It looks like the pipe is an issue as http://www.donateblood.com.au/news-eve...

How to add page title in url in asp.net mvc? (url generation)

How to dynamically create urls/links like: www.restaurant.com/restaurant/restaurant-name-without-some-characters-like-space-coma-etc/132 what are the keywords i can use to google some articles on this topic? (how to genererate and handle this kind of urls inside asp.net mvc) There are some questions: How to generate links? (store slugs...

Creating Dynamic URLs (#####.example.com)

Is there a way of creating dynamic URLs so when someone access my site with ####.example.com the #### would be a key of where to go. I know Elance does it with usernames, instead of www.elance.com its username.elance.com ...

How do I get the host domain name in ASP .NET without using HttpContext.Current.Request?

Hi all, I've got an ASP .Net application running on IIS7. I'm using the current url that the site is running under to set some static properties on a class in my application. To do this, I'm getting the domain name using this (insde the class's static constructor): var host = HttpContext.Current.Request.Url.Host; And it works fine on...

flash movie won't load? linking issue?

artoferichu.com/figures/ doesn't load. artoferichu.com/figures loads. the flash movie won't load in the first link and loads in the second link. any idea what is going on?? i'm using .htaccess to redirect figures to figures.php oh btw, my .htacces looks like this: RewriteRule ^figures/?$ figures.php ...

django routes help

Hay guys, im making a simple car sale website. I have a nice little urlpattern which works well as expected /car/1/ goes to a car with that id, simple? However, for SEO reasons i want to add extra data to the URL, but ignore it. /car/1/ford/focus as an example, how would i go about modifying my patters to take the extra parts into...

javascript onclick get url value

i will like to get a url value upon onclick. like this: www.google.com/myfile.php?id=123 i want to get id and its value. thanks ...

JavaScript: Replace hexadecimal character

I have a string such as "%2Fu%2F2069290%2F" in JavaScript (extracted from a web page). How do I get the human-readable version of that string? ...

HTACCESS Redirect Rule

I need assistance with a redirect rule. It's quite simple. The catch is, I need to use the fully-qualified URL since I am including subdomains. Here's what I've got so far, but it's not working. Redirect 301 http://pc.gamezone.com/oldpage.html http://pc.gamezone.com/downloads Redirect 301 http://xbox360.gamezone.com/oldpage.html http:/...

Outbound Inbound URL

Hi can anyone explain the differences between an outbound url and an inbound url? Im doing some code examples in asp.net mvc and don't really understand outbound/inbound url. cheers in advance ...

how can I fill data to extjs component using querystring?

for example if I have extjs ComboBox, and I have URL like http://localhost:8080?param=value1,value2,value3 how can I access this << param >> value in ExtJS, so that I can covert it into something like Ext.data.Array or .... ...

SSRS for Sharepoint, Images in a report from a Sharepoint List URL?

Greetings Sabios, I have several reports I run successfully where the data comes from a Sharepoint list in the form of an XML dataset. I am however having trouble with one. I have a report that pulls an image file onto the main body of the report. This data too comes from a Sharepoint list in the form of an XML dataset which sends me t...

Is it possible to do this on the Android and iPhone? (for mobile developers)

Embed a browser inside the application. When the user navigates to a desired page, he pushes a button to "set" this page. Now, the application gets the URL of this page! How hard is this to do on the Android and iPhone? ...

How may i escape / and other characters in asp.net?

When i visit http://localhost:17357/u/a%2fa/m/ssd-10 and look at HttpContext.Current.Request.Url in Application_BeginRequest i see http://localhost:17357/u/a/a/m/ssd-10 huh? shouldnt i get http://localhost:17357/u/a%2fa/m/ssd-10? i thought the point of escaping urls is so ?, &, / and other special symbols not be confused with their speci...

Escaping & in a URL

I am using jsps and in my url I have a value for a variable like say "L & T". Now when I try to retrieve the value for it by using request.getParameter I get only "L". It recognizes "&" as a separator and thus it is not getting considered as a whole string. How do I solve this problem? ...

How to implement Intuitive website URL using .NET plateform ?

Hi, I'm trying to implement a "restful" application using ASP .NET 3.5 but it seems that I need to use MVC .NET. Is that the only solution? For instance, I would like something like: /api/nab/(version)/(slug) I'll be happy to know how you manage to do that. ...

URl Switching between subdomain

I have site say http://info.sys.com I want the info in the url to be replaced to knowledge.sys.com when i select knowledge tab in my website. info.sys.com should be replaced to knowledge.sys.com when i select knowledge tab. I use jdk 1.5 update 9 and tomcat 6.0.16 Looking forward for your reply. ...

android open url from code

How to open an URL from code in the built-in web browser rather than within my application ? I tried this : Intent myIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(strURL)); startActivity(myIntent); but I got an Exception : "No activity found to handle Intent{action=android.intent.action.VIEW data =www....

How do I pass more than one variable via URL in php?

Hello, I am trying to pass multiple variables in a URL in PHP to GET some info, but I don't think it's working. $allowedFunctions = array( 'returnAllProducts', 'refreshCurrentProduct' ); $IDNUM = $_GET[ 'idNum' ]; $functionName = $_GET[ 'func' ]; if( in_array( $functionName, $allowedFunctions ) && function_exists( $function...