url

Rewrite rule on multiple variables using Apache mod_rewrite

Hi, I would like to know how can I rewrite www.site.com?lang=lv&type=1&mode=2 into www.site.com/lv/1/2 using Apache mod_rewrite options. ...

Help with Regex to match and rewrite URI

I need to have a RegEx that will match a URI like this based on the subdomain "blog"-- http://blog.foo.com/2010/06/25/city-tax-sale/ and redirect like this (getting rid of the subdomain and numbers/date)-- http://foo.com/city-tax-sale/ where the last bit "city-tax-sale" would be a wildcard. So basically any incoming URI that starts ...

How to display a simple webpage app on Blackberry using JDE Plugin in Eclipse

I'm totally new to this. How could I make my app, in the menu I did, just open for example www.google.com? My trouble is in the code to make this happen - I already have the graphic stuff with the menu. ...

PHP image file call origination

I have a file called image.php and one called index.html. This code is in index.html <img src="image.php"> Now, is it possible for the image.php file to know that it was called by the index.html file ? If so, how? ...

Check for valid link (URL)

I was reading though this other question which has some really good regex's for the job but as far as I can see non of them work with BASH commands as BASH commands don't support such complex rexeg's. if echo "http://www.google.com/test/link.php" | grep -q '(https?|ftp|file)://[-A-Z0-9\+&@#/%?=~_|!:,.;]*[-A-Z0-9\+&@#/%=~_|]'; then ...

django css file not recognised - wrong configuration?

in my app, i want to use a css file, but the tempalte doesn't 'know' where the file is, though i've configured it as in tutorials: in the urls.py (the urls file in the root of the site, not belonging to an app) (r'^site_media/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.STATIC_DOC_ROOT}), in the tem...

Best Practice: How to ensure and modify a String so that it is a valid URL

I have a application which requires the user to input some values. From these values a URL is generated. However if the user enters special symbols like e.g. german vowels or other strange symbol, there is an exception when I try to create a URL. So i have two questions: What is the best way to detect if a URL is a well-formed URL? How...

jQuery get array values from url

I've got an url like this: http://www.somewhere.com/index.html?field[]=history&amp;field[]=science&amp;field[]=math Using jQuery, how can I grab the GET array? Thanks. ...

slash hash slash

Is there any advantage to have a URL with a hash written with slashes around it. For example: http://www.example.com/#/profile Does it SEO better? I thought anything after a slash was not indexed. ...

help with URL rewrite for a multilanguage site with .htaccess (Apache)

Hello, I have a multilanguage site and I'm trying to rewrite the URL's with a fake directory something like this: http://localhost/theSite/page.php?id=param&amp;cat=param?lang=en,fr,es to http://localhost/theSite/(en|fr|es)/page/param/param .htaccess Options +FollowSymLinks RewriteEngine on RewriteRule ^(fr|en|en)/(.*) $2.php?id=$1&ca...

What's the quickest, cleanest way to remove parent pathing from a URL string?

In C#, is there any built-in way to "correct" URLs that have parent pathing in them? So, I want to take this: /foo/bar/../baz.html And turn it into... /foo/baz.html (The "bar" directory being negated by the ".." after it in the path.) I've tried to hand-roll this, but the logic gets pretty ugly, pretty quickly. Consider something...

Remoting in flex - Is service-config really needed? And What is endpoint url?

Hi, Rather than calling it a question, i would like to call it a discussion and the topic is Flex Remoting. Forms and blogs explaining remoting in flex always mention 2 things: service-config.xml endpoint url Now what i want to know is that 1. is service-config file actually needed if we need to bind our front end (which ...

Zend Framwork: Problem with links (like a href)

Hi, I've got a problem with Zend Framework, when calling an action. This action is called "uploadvideo" inside a controller called "UploadInterfaceController". Therefor the view is called "uploadvideo.phtml". Now all this is wrapped in a module called "Upload". The problem is, that I cannot call a link inside the uploadvideo.phtml. I ...

Facebook and Twitter URL to post status

Is there a method that can post a status to Facebook or Twitter. Twitter has this: http://www.twitter.com/?status=This+is+the+status+that+will+be+grabbed+by+Twitter What about Facebook? Thanks. I know about doing it by cURL, but I'm not asking about that :p ...

Conditionally skip form fields from submission, Reduce URL clutter

I have multiple hidden form fields which store values about the the current view (e.g. if certain, normally hidden div's are visible etc.) to restore the layout when the form posts back. The problem is that I'm always submitting all these hidden fields, even if they are in default, generating lots of unnecessary URL clutter in the proce...

How to change the panel title when redirecting from a sitemap url?

I have created a custom settings page that looks nearly identical to the Settings->Administration page. I have a sitemap item to display this custom page. For some of the custom items, I want the link to redirect to the default CRM grid on a particular entity. This would ideally work similarly to Settings->Administration->Teams page. ie...

Best way to pass Url to another page

I have pass url to another page via javascript .For example www.example.com/share.php?url=http://google.com/ (I create whole url via javascript , I add my url variable to static string (which is www.example.com/share.php?url= ) and I redirect user to this page). But while I am passing url variable to share script , special characters(ğü...

variable number of parameters from a url/paramname/valueparam in an array ?

hello, basicly I would like to read url params in an array so finding params don't depend on their place in url I have a url for seach with controller/action/paramA/valueparamA/paramB/valueparamB theses params are optional : I have direct url with search params inside to read params from url we have to use action(valueparamA, valuepara...

How to pass the cookies from GET to POST on iPhone

Hi, everyone, I want to ask an iPhone application, it is about the adding cookies of GET and POST in NSURLRequest and NSURLResponse. In my program, the user has to enter uesrname and password. After entered the information, the user will press a button. When the user presses the button, the program will call a function 'pressLoginButt...

Hidden file names in URLs

I usually like defining my pages to know exactly what page does what. However, on a number of sites, I see where the filename is hidden from view and I was just a little curious. Is there any specific benefit of having URLs appear like this: http://mydomain/my_directory/my_subdirectory/ As opposed to this: http://mydomain/my_directo...