url

simple redirect to default page with htaccess

The htaccess file requires an entry at the end of /folder/ to redirect the page example: http://www.server.com/folder/"some-page-name" If no page is defined as, then I want it to be "index" by default the htacess RewriteBase /folder/ RewriteRule ^(.*)$ subfolder/index.php/?page=$1 [L] ...

Ruby on Rails Base URI

I am using Phusion Passenger to host a rails app on an Apache server (I am very new to rails). I have several domain names that point to the same server, and a mod_rewrite is used to direct different domains to different subdirectories. I was having a difficult time getting the app to load at all, but I set RailsBaseURI to the path rel...

301 redirect dynamic urls

Hi how do you 301 redirect http:// www.site.com/blog/index.php?id=uu5 to http:// www.newsite.com/ in .htaccess? Thanks! ...

How to know redirect URL

Possible Duplicate: A way to figure out redirection URL C# Issue: If we type the following url (see warning) http://migre.me/13rQa It will redirect to oooooo1.ru I like to know the redirected URL from C#. Anybody knows how to do it. P.S: These mentioned URL could be virus affected. Please use on own risk ...

dynamic seo title for news articles

Hi, I have a news section where the pages resolve to urls like newsArticle.php?id=210 What I would like to do is use the title from the database to create seo friendly titles like newsArticle/joe-goes-to-town Any ideas how I can achieve this? Thanks, R. ...

Get domain name in url with JSTL?

I am trying to get the domain name from the url with JSTL. The 2 methods I know return the wrong info. I need exactly what is in the url. When I do: ${pageContext.request.remoteHost} I get an IP. When I do ${pageContext.request.serverName} I normally get the right domain name but on a server we have on amazon it is returning "server1" ...

Read data into Matlab using URL

I want to read weather data from Weather Unground into Matlab directly. For a given site you can select to output the data in comma delimited format. How can I write a Matlab function that will read in the information into Matlab? I don't want to download the file but rather read it in from the URL. For example, here is a URL of some d...

Passing url to Three20 TTURLMap

I am trying to pass in a URL as a parameter to a TTURLMap like this: [map from@"tt://person/(initWithURL:)" toViewController: [PersonViewController class]]; I then have a TTStyledTableItemCell with links that render like this: <a href="tt://person/http://persons.url.com/blah"&gt;Person name</a> but when I click on these links the l...

manupulate url in MVC2

On my page I have a lot of textpages and to save some time. I would like to make one controller/Action to handle all this sites. However, this gives me some problems with the URL (I dont want it to say something like http://MySite.com/DynamicPages/TextPages). I figure that I should be able to store all URL's in the database and then get ...

Detect malicious URL destination?

Is there an online service that can tell me if the file at a given URL is malicious? I'm publishing URLs in my website, and would like to warn users which URLs could contain malware. I'd like to request a report with an HTTP request like: http://www.somemalwareadvisor.com/canitrust?url=... Thanks! ...

detecting programatically whether an app is installed on iphone

I am in this situation where I have to display a button which says "Open myApp" (if myApp is installed on the device) or it says "Download myApp" (if myApp is not installed on the device) in an iphone app. To do this, I need to detect whether an app (with a known custom URL) has been installed on the device. How can I do this? Thanks in ...

Convert URL to screenshot (script).

There is the URL of page on the Internet. I need to get a screenshot of this page (no matter in which browser). I need a script (PHP, Python (even Django framework)) that receives the URL (string) and output screenshot-file at the exit (file gif, png, jpg). UPD: I need dynamically create a page where opposite to URL will be placed sc...

Specifying base url for css

I had to split up a long css file. I put the smaller css files within a "styles" directory. Now I have to update the the urls to go up one level with the "../" notation. Is there anyway to specify the base url from which to load assets like with the base tag in html, but with CSS? ...

Sourcecode in the url

Hello all, normally you go on a website and by right click you can choose to see the source code. Or you just use firebug and select an element you want to analyse. Is it possible to write the source code in the URL so that it wouldn't be shown by right click + choosing or selecting an element? I'm asking because I've already seen thi...

How to access AJAX hash values in ASP.NET MVC?

I'm considering using the hash method to create static urls to content that is managed by ajax calls in a Asp.Net MVC. The proof of concept i'm working on is a profile page /user/profile where one can browse and edit different sections. You could always ask for the following url /user/profile#password to access directly to you profile pa...

Create a batch to open new URL in existing Internet Explorer window

How can i Create a batch (.bat,vbs,js) that can be run from command line in windows to open new URL in existing Internet Explorer window ...

change url links on document load

i have this js bookmarklet that makes all the current page's font colors black. what i wanted is to maintein the effect of the bookmarklet even clicking on the page's links javascript:( function(){ var newSS, styles='* { color: black !important }'; if(document.createStyleSheet) { document.createStyleSheet("javascript:'"+styles+"'"...

Need to have duplicate item urls/GUIDs in RSS

I'm working on a tool to publish videos in a playlist, with the option to download as a podcast. Sometimes, items will need to be repeated over the course of the podcast. Having duplicate items or GUIDs causes problems though. Does anyone know of a way to be able to have duplicates? ...

Htaccess RewriteRule trouble - How to redirect to a "re-written" url on the server?

I have the following rewrite rule which is working fine: RewriteRule ^([a-zA-Z\-]+)[/]?$ apply/?survey_folder=$1 which turns this: address.com/folder1/ into this: address.com/apply/?survey_folder=folder1 The problem is that I can't figure out a way to use a redirect to the rewritten URL. Using cfml as an example, (cflocation url="htt...

asp.net mvc routing - rewrite url

after debbuging i am getting following url of my webproject: http://localhost:54594/Home/Home /Home-Controller/Home-Action http://localhost:54594/AboutUs/AboutUs /AboutUs-Controller/AboutUs-Action http://localhost:54594/Products/Products /Products-Controller/Products-Action In my global.asax i ha...