» Home » urls » Page 1
Hierarchical RESTful urls still preferred - in terms of added overhead - over flat urls?
Category : Coding

Let's say I have a website where users can upload and show their pictures. A RESTful url to a single picture of that user would look like:


But the image-id itself is already unique, so this url would already be good enough to get it:


View Replies

Redirect all naked domain urls to subdomain(www) urls preserving the url, except for one page on IIS/ASP.NET
Category : Programming Languages

Whats the best way to achieve the above? I do know that it can be achieved at HttpModule level. Is it possible just via web.config(easier and faster to code execute).

View Replies

Redirect/.htaccess to change old PHP parameter URLs to SEO friendly CakePHP URLs?
Category : PHP

I'm about to update my site to use CakePHP instead of an old homegrown framework. I need to write the HTAccess file to redirect the old PHP parameter URLs to the new CakePHP SEO friendly urls, but I can't get it to work.

My htacess file (the one in app/webroot) looks like this at the moment:

RewriteEngine On
RewriteRule ^index.php?action=view&item=172$ inde

View Replies

Friendly URLs with .htacces NOT working… and stackoverflow URLs style
Category : Development Tools & Services

I know this question has been asked a million of times here at stackoverflow, but I cant get it to work so I need someone who knows to finally resolve this problem!

I want that when this is inserted in the URL:


It really goes to this:


View Replies

Forcing the rewriting of URLs by hiding .php AND .htm(l) extensions and redirecting to extensionless URLs
Category : Web Design

here is my configuration:

http://domain.com (obviously fictitious name...) hosted on a server running Apache with mod_rewrite enabled
folder named "foo": (located at http://domain.com/foo/ and in which I want to put my .htaccess file) containing only 3 types of files .php, .htm, .html
.php files (for the sake of the example I will refer to one of them: phpfile.php)

View Replies

In Perl, how can I replace relative URLs in src attributes of img tags with absolute URLs?
Category : Programming Languages

I want to find and replace (from an html page) all occurrences of src attributes in img tags. E.g., take

<img width="25" height="13" border="0" src="/images/flags/de.png">

and change the src attribute

I am currently using:


View Replies

How to replace text URLs and exclude URLs in HTML tags?
Category : Programming Languages

I need you help here.

I want to turn this:

sometext sometext http://www.somedomain.com/index.html sometext sometext


sometext sometext <a href="http://somedoamai.com/index.html">www.somedomain.com/index.html</a> sometext sometext

I have managed it by using this regex:


View Replies

IE Mixed Content Warining when using https URLs and http:443 URLs?
Category : Development Tools & Services

I'm getting the good ole' "This page contains both secure and nonsecure items." dialog in IE when connecting to an HTTPS site. No big deal... I've just got something coming in over a non-secure connection so that should be an easy fix, right?

So I go into "View > Web Page Privacy Policy..." to look to see where I've included an HTTP file, and this is what I see...


View Replies

Parse text to format URLs from content and shorten URLs
Category : Web Design

I would like to parse the following text into formatted URLs with anchor tags:

something is wrong with http://www.gbin1.com/index.html, but cannot find the reason in http://www.google.com

How can I replace the text URLs above with <a href="url">url</a> and also shorten it using JavaScript as displayed below:


View Replies

Keep track of reserved URLs (to enable vanity per-user URLs)
Category : Programming Languages

On my rap lyrics explanation website, every user has an associated "favorites" page at http://rapgenius.com/USERNAME

Because these favorites pages occupy the root namespace, I have to make sure that no one takes a username that I'm already using for something else. E.g.:

View Replies

2012 / 2017 Copyrights BigHow , All Rights Reserved .