friendly-url

What char should I use to replace illegal characters in a url slug

I noticed that various systems use various characters as the replacent for illegal ones in urls. Is there a reason to use one or the other or should I just pick the one that looks best to me The options I have seen so far include: - _ + and simply removing all illegal characters. ...

Descriptive URLs vs. Basic URLs

I have a website and I'm employing Clean URLs to all of the links. I'm wondering what the opinion is about short, basic URLs versus longer, descriptive URLs. For instance, if my website was about Georgia Bulldog football news, which would be better for SEO purposes? http://www.example.com/news or http://www.example.com/georgia-bulldo...

Removing index.php from website URLs

I am using the Kohana framework (but I think it's irrelevant for this question) and pages can be accessed like so http://www.example.com/articles/ http://www.example.com/index.php/articles/ Now, as a rule of thumb, I generally try and tweak my .htaccess to only allow one way in for a page, and silently redirect other common ways. Ess...

.htaccess Edge Case

I am using these rules and conditions in .htaccess to turn these http://www.example.com/index.php/about/history http://www.example.com/about/history/index.php into http://www.example.com/about/history .htaccess # ensure there is no /index.php in the address bar RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /.*index\.php\ HTTP/ R...

.htaccess ModReWrite help

I am having some trouble with my ReWrite code. Please note that the .htaccess file is in the subdomain folder (...public_html/subdomain/ ) I am simply trying to rewrite a page request: http://subdomain.mysite.com/home http://subdomain.mysite.com/index.php?page=home My .htaccess file looks like this... RewriteEngine On RewriteRule ^/...

URL suggestions for SEO and userfriendliness

What do you guys think is better? mysite.com/<username>/media/<mediaId>/<title> or mysite.com/<username>/media/<title>-<mediaId> The title portion is ignored entirely and only exist to provide user readable urls. It can change. What do you guys think is better? A pro for the former is if the title is cut off/not linked the url will st...

standard way of encoding pagination info on a restful url get?

I think my question would be better explained with a couple of examples... GET http://myservice/myresource/?name=xxx&amp;country=xxxx&amp;_page=3&amp;_page_len=10&amp;_order=name asc that is, on the one hand I have conditions ( name=xxx&country=xxxx ) and on the other hand I have parameters affecting the query ( _page=3&_page_len=10&_o...

How can I display short URLs without file extention?

Hi, I've looked around but wasn't able to find what I was looking for. I'm looking for a way to automatically create short URLs displayed in the browser, not using a URL shortener. Basically I would like to re-create something like this: idzr.org/1ptb I upload screenshots to my server with "GrabUp" on a regular basis but it creates r...

How do I allow users to map their domains to a url on my site?

How do I allow users to map their domains to a url on my site? (like how tumblr or blogger does) The app is being developed in Django. I want the users to be able to map their domains to mydomain.com/username (is this possible or do I need to have a format like username.mydomain.com?) Also my app runs on a VPS so I have my nameservers ...

how stackoverflow permalink works?

how does stackoverflow manage permalinks. For example an arbitary qn like: http://stackoverflow.com/questions/1002230/asp-net-jquery-dynamically-created-hyperlink-controls In this case what happens if the same user posts another qn with the same title. I think the number before- /1002230/ is the key but on what basis is that created. Is ...

how to "rewrite rule" for a sub-sub-directory? .htaccess/php

Hi I have one folder named test located at www.mydomain.com/abc/files/test. I need to change the URLs from www.mydomain.com/abc/files/test/test.php?id=15&key=some-text123 to www.mydomain.com/abc/files/test/15/some-text123 this is similiar to SO urls. I tried following in .htaccess file with following code RewriteEngine on Options +F...

Generating User-Friendly URLs

Hi, Is there a standard way / C# library to convert a string into a user friendly uri in order to use it in a RESTful MVC environment? StackOverflow does this, for example "èòà" are converted to "eoa", question marks are removed while dots, commas and brackets are replaced with "-" and so on. Any suggestion? Thanks ...

Generating pages from a database

Hi, I'm looking for some help understanding how to generate pages from a database to create a catalog of items, each with different URLs. All I can seem to find through google are products that will do this for me, or full e-commerce solutions. I don't want a shopping cart! Just an inventory. Also, perhaps someone could recommend their ...

Apache htaccess re-write URL rules?

I want to create URL re-write rules for following URL in htaccess. http://example.com/vedios/category/fun/ -> http://example.com/vedios/category.php?cat=fun http://example.com/vedios/category/fun/?show=popular -> http://example.com/vedios/category.php?cat=comedy&amp;show=popular http://example.com/vedios/category/fun/?show=popular&amp...

Mod_rewrite - how to 301 redirect an old URL to a new one

Hi, I need to grab some of my website's old URLs and do a 301 redirect to the new ones, since they are already indexed and we don't want to loose relevance after the change. The old URL is in fact very ugly and for some reason everything I try to do to rewrite it does not work. Here it is: http://www.mywebsite.com/ExibeCurso.asp?Comando...

How to create SEO friendly paging (in Digg.com style) using ASP.Net 2.0(C#)?

Hi, I have created a digg.com style pagination for my ASP.Net 2.0 (with C#) website's gridview control using this article: http://kpumuk.info/asp-net/gridview-with-custom-digg-like-pager/ In order to achieve digg.com style, the author of the above mentioned article has customized gridview control and created a C# control named as Grid...

Mod_Rewrite: Insert "/" between variables and values in URL

Hello all, I am attempting clean useful URLs using mod_rewrite. I am sure this is a common question but I am not so hot with mod_rewrite: I have this URL: http://mysite.com/user.php?user=fatcatmat&amp;sort=popularv I want to be able to rewrite it like this: http://mysite.com/user/user/fatcatmat/sort/popularv (Is there a way to remov...

Are there APIs for translating short url's back to regular links?

I want to translate bulk numbers of short url's coming streamed from twitter. Rather than accessing each individual request I want to use API's that accept a list of short or tiny URL's and return the original URL's. Are such API's available? ...

Regex to match a URL pattern for a htaccess file

I'm really struggling with this regex. We're launching a new version of our "groups" feature, but need to support all the old groups at the same URL. Luckily, these two features have different url patterns, so this should be easy? Right? Old: domain.com/group/$groupname New: domain.com/group/$groupid/$groupname The current regex ...

Creating search engine friendly URL's in ASP.NET MVC

I would like to develop URL's which look like the following: http://mysite.com/products/1/best-product-in-the-world Where all i need to get to the proper record is the following route: http://mysite.com/products/1 When I add the product description piece to the URL ("best-product-in-the-world") I get URL encoding issues. I've tried...