Questions tagged [friendly-url]

A friendly URL is a website address that does not contain a query string or complex strings in the URI, instead relying on a human-readable, SEO-friendly resource path after the website authority (e.g. https://www.stackoverflow.com/questions/tagged/friendly-url).

A friendly URL is a website address that does not contain a query string, instead relying on a human-readable, SEO-friendly resource path after the website authority (e.g. https://www.stackoverflow.com/questions/tagged/friendly-url).

Most of the time it is achieved with the help of a Rewrite Engine, such as mod_rewrite for Apache or mod_rewrite for Lighttpd. Many content management frameworks have the ability to generate friendly URL's built in.

1221 questions
0
votes
2 answers

How to set html button as default for ASP.Net form?

Well, I'm trying to make ASP.NET urls looking user-friendly, like it was explained in this question. So I created an ASP.Net form, and placed asp:textbox and asp:button on it. Also I set onclientclick attribute to call JS function which navigates to…
flashnik
  • 1,900
  • 4
  • 19
  • 38
0
votes
3 answers

How to transform ASP.NET URL without URL routing or URL rewrite?

I am using ASP.NET 2.0 on IIS6 therefore I can’t use system.web.routing. I’ve tried a few URL rewriters but none did what I wanted. I basically need to transform (read/parse then redirect) URL 1 into 2 with minimum IIS configuration because I don't…
Jeff
  • 13,079
  • 23
  • 71
  • 102
0
votes
3 answers

PHP: Parse different styles of friendly urls

I am writting my own small framework and I am going to implement friendly URLs there. mod_rewrite is great. But I want to be able to handle several types of friendly URLS at once: /index.php?ac=user&an=showprofile (fallback variant, the…
Vladislav Rastrusny
  • 29,378
  • 23
  • 95
  • 156
0
votes
3 answers

optimizing Pretty URLs in .htaccess

This is the code I use, RewriteCond %{SCRIPT_FILENAME} !-d RewriteCond %{SCRIPT_FILENAME} !-f RewriteRule ^([^/]+)/?([^/]+) index.php?user=$1&do=$2 [L] if i give it abcd/1234 it will capture abcd first then…
Mohammad
  • 7,344
  • 15
  • 48
  • 76
0
votes
0 answers

Implementing friendly links into custom CMS

I am interested in making my website URLs friendlier for the eye (and Google) by implementing various directories rather than obscure ?id=xyz pages. Examples: /review.php?id=371 To /review/deja-vu/ And …
ividyon
  • 656
  • 2
  • 6
  • 17
0
votes
3 answers

How to make URL with unique ID pretty and improve visibility in search results

My team is developing a new website to offer "Online tour Registration" services for a company. While designing tours page, We were discussing how to create a URL for every tour such a way that everyone can understand it and on the other hand it…
Iman
  • 533
  • 2
  • 8
  • 23
0
votes
1 answer

read parameters from friendly url in Struts2

Using Convention Plugin, I am able to achieve friendly URL in Struts2. Now, I want to read the parameter from the URL. How to acheive this. http://domain.com/book/struts2 http://domain.com/book/hibernate Regards Ganesh
Ganesh
  • 169
  • 2
  • 10
0
votes
1 answer

making user friendly urls in a cms

I am interested in the architecture of a CMS where i can pass a full URL instead of a query string. I would like to make a site that could handle a request to any page... Say 'http://www.my-domain.com/directory/page.aspx' and have the resulting…
Kieran
  • 17,572
  • 7
  • 45
  • 53
0
votes
1 answer

mod_rewrite - need help with friendly URL

How would you mod_rewrite a url to go from directory.php?id=4 to directory/category/city/name/4/ I took a stab in the dark with RewriteRule ^directory/*/*/*/([^/\.]+)/?$ directory.php?&id=$4 But not working obviously. Any help is greatly…
Corfro
  • 3
  • 1
0
votes
1 answer

AJAX and SEO friendly URL's

Note beforehand, I've already read this: https://developers.google.com/webmasters/ajax-crawling/docs/getting-started?hl=en-US My pages are available via friendly URL's, e.g. http://www.wonderweddings.com/weddingshop/wedding-cameras However, as you…
Adam
  • 6,041
  • 36
  • 120
  • 208
0
votes
1 answer

How to run a php query in index.php but with friendlier URLs?

I want to type www.mysite.com/page1 in the browser but I want the server to get this. www.mysite.com/index.php?page=1 and I want the former address www.mysite.com/page1 to stay persistent in the browser address bar. Is this possible? I assume it's a…
frankie
  • 661
  • 2
  • 10
  • 25
0
votes
2 answers

regular expression for trailing . at the end of a string

we currently have been making use of a UDF we use from cflib.org and whilst its a wonderful UDF that alters strings to be pretty on the eye, we cant seem to figure out how to make it allow a trailing "." at the end of the string if it is…
user125264
  • 1,809
  • 2
  • 27
  • 54
0
votes
1 answer

url friendly and keeping hierarchy

I am in the process of converting my urls to friendly urls and I'm struggling a little bit with some of them, For example Lets say posts and categories, Post (detail): /post/the-title/10 /* /post.php?id=10 */ Posts (list) /posts/ /*…
Toni Michel Caubet
  • 19,333
  • 56
  • 202
  • 378
0
votes
2 answers

which is better friendly url among the these?

I want to know which of the following urls is best to…
user153887
  • 29
  • 5
0
votes
2 answers

Can Friendly URL features be used inside Global.asax?

I'm learning ASP.NET 4.5 and stumbled upon this post about Friendly URLs. Now I'm using ASP.NET 4.5 and it turns out the feature was already enabled and installed when I create a new ASP.NET project. Let's say I have the following…
rad
  • 141
  • 8