friendly-url

How do I create userfriendly urls like stackoverflow?

I want to create a similar type of url as stack overflow does when a question is created. Example: http://stackoverflow.com/questions/1149454/non-ajax-get-post-using-jquery-plugin I am particularly interested in the last part which I have highlighed in bold. How do you achieve the affect of adding the title of the page to the url with...

ASP.NET Routing

I have a small task to do, and figured it would be better to start here than doing it wrong then coming here again. I need to replace my URLs with a more friendly format as the following: Current: www.MySite.com/default.aspx?userID=XX I want it the users to type : www.MySite.com/user/(UserName) Also, Current: www.MySite.com/default.aspx...

ASP.NET MVC Custom URL - Virtual Server Path

I know how to setup a route to a url like http://siteurl.com/mycustomaccount/dashboard, but I would like to customize the "url" portion with a custom virtual server path such as http://mycustomaccount.siteurl.com/dashboard. I want users signing up to have their account "mycustomaccount" setup so that I can intercept the request and prov...

Appending to current URL in ASP.NET MVC

I know that this is probably something easy to implement, but I am having a bit of trouble finding an answer. Similar to how Stackoverflow allows you to continue to drill down into questions using tags, I am trying to implement the same. So, I have created a list of 'tags' on my MVC page that looks like this: <%For Each item As myItem...

URL on Windows 2003 Server via shortened name?

I'm a developer so please excuse my ignorance on how to do this: I have access to a Windows 2003 Server where I have some web applications deployed. Instead of users accessing the web applications via some long URLs, how can I shorted the root URL of the server that more human-readable and accessible? For example, instead of this: http:...

Date and name based friendly URL using .htaccess

Hi, I'm planning on switching from having my blog on wordpress.com to having it on my own site hosted on my own server. Naturally I want to preserve the link structure from wordpress so that no links to my blog out there on the WWW break. So my question is, how do I get the following friendly URL http://example.com/yyyy/mm/dd/post-nam...

Cleaning Up Query Strings

Hi, This is more of an open question. What is your opinion on query strings in a URL? While creating sites in ASP.NET MVC you spend a lot of time thinking about and crafting clean URLs only for them to be shattered the first time you have to use query strings, especially on a search form. For example I recently did a fairly simple sear...

mod_rewrite help

For some unknown reason, my rewrite rule does not fire. Can you advise ? /extranet/.htaccess (1) /extranet/stable/ /extranet/dev/ /extranet/dev/.htaccess (2) The first .htaccess redirects all traffic to the stable folder, except for URLs specifically pointed at the dev folder. That works fine. Inside the dev folder, the second .htac...

mod_rewrite fail: .htaccess or server config issue?

The application i'm developing uses a certain file directory structure. Via the use of mod_rewrite and .htaccess files, i manage to have friendly urls for our users. It works fine on my local server, but once on the production server, it fails: apparently, the server throws a 404 error before the .htaccess has a chance to kick in. Here ...

Rails default_url_options for actioncontroller to auto format all urls/paths with .html

One of our requirements was that all our url's ended with .html We've overridden the default_url_options method to add the format to the options def default_url_options(options={}) options.merge(:format => 'html') end This works great in the most part... but it causes issue with the following routes: map.home '/', :controller => 'h...

shortest encoding for Guid for use in a URL

The top result on google http://csharpfeeds.com/post/4382/A%5Fshorter%5Fand%5FURL%5Ffriendly%5FGUID.aspx will get one down to 00amyWGct0y_ze4lIsj2Mw Can it go smaller than that? ...

Pushing/Migrating your local Drupal site to a live-site.

I have installed drupal on my localmachine(ubuntu, Xampp), at localhost. Path and Pathauto modules are active (a module to produce friendly URLs). Migrating/Pushing my local install to the www.mysite.com Exported SQL from phpMyadmin(localhost). Made a new DB at live site (I think a different name from the localhost-DB does not cre...

Configure UrlReplacer to only work for specific IP addresses

I'm using a utility called UrlReplacer to enable the configuration of friendly Urls for a website I'm working on. The website is developed in Asp.Net 3.5 and uses Immediacy CMS. We need to allow the client to manage their own friendly URLs. Is there any way that UrlReplacer can be set up so that the configuration page is only visible t...

What is the best way to implement a friendly URL that has multiple variables using mod_rewrite?

Hi I am building a web application that is client side js heavy with data being pushed in chunks from the server. I am trying to implement a solution for a friendly URL solution that takes a URL like: http://exmample.com/find/SomethingHere-or-there That equates to a series of variables not visible. So it might end up processing ...

What is the Best Way to Clean a URL with a Title in it

What is the best way to clean a URL? I am looking for a URL like this what_is_the_best_headache_medication My current code public string CleanURL(string str) { str = str.Replace("!", ""); str = str.Replace("@", ""); str = str.Replace("#", ""); str = str.Replace("$", ""); str = str.Replace("%", ""); str = str.Re...

Caching friendly_id plugin

Class Product < ActiveRecord::Base has_friendly_id :name, :use_slug => true end What is the most efficient method to store the slugs within the 'products' table. I have complex find queries, and the joins with the 'slugs' table give me performance bottlenecks. ...

Friendly URL Question, with a Twist

I have a user model and a profile model. user has_one :profile profile belongs_to :user Because of this relationship, I pull up my profiles by calling the user id. So my urls look like this: website.com/users/[user_id]/profile I'm not sure if there's a solution to my problem. Here it is: I would like to display SEO friendly urls. I'...

Should I use accented characters in URLs?

When one creates web content in languages different than English the problem of search engine optimized and user friendly URLs emerge. I'm wondering whether it is the best practice to use de-accented letters in URLs -- risking that some words have completely different meanings with and without certain accents -- or it is better to stick...

Seo friendly urls with unique id as a directory count as duplicate content ?

Hello, I am looking to implement a similar url as stackoverflow to an eshop: http://wwww.shop.com/products/123123/product-name But i have a few concerns: 1. does google consider it duplicate content as the page: http://wwww.shop.com/products/123123/ I knew that google alwasy goes down the url, does it not consider the numbers as ...

How do I get twitter/friendfeed like home urls in rails?

I want to be able to have twitter like friendly urls like http://twitter.com/username. How to pull this off in rails? ...