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
1 answer

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…
MikeH
  • 866
  • 1
  • 14
  • 26
0
votes
3 answers

Friendly Url Redirection

I have asp.net MVC 4 site which the articles url is : www.site.com/article/623/friendly-url-here I wan't that if someone accessing an article without the friendly url, it will be completed without redirecting and accessing the database twice (which…
Aviran Cohen
  • 5,581
  • 4
  • 48
  • 75
0
votes
2 answers

friendly URL, parameter with slashes

I have the following rule in my htaccess file: RewriteRule ^product/(.*)/(.*)/([0-9]+)$ product_page.php?prod=$1&code=$3&lang=$2 [QSA] when I have / slash / within my product name…
Atara
  • 3,523
  • 6
  • 37
  • 56
0
votes
1 answer

Htaccess. Redirect from non-friendly Url

I need friendly URL only for some pages on my website, I added this code to htaccess RewriteEngine On RewriteRule languages/english-online.html languages/english.php And now when I open in browser http://mydomain.com/languages/english-online.html I…
user1067939
  • 93
  • 1
  • 1
  • 6
0
votes
1 answer

apache mod_rewrite and number of query parameter

Here I have an original url: /index.php?controller=controller_name&action=action_name¶m1=val1¶m2=val2 I need a rule that will transform it to: /controller_name/action_name/param1/val1/param2/val2/ The issue is I don't know how many param…
nvcnvn
  • 4,991
  • 8
  • 49
  • 77
0
votes
4 answers

have different static url in dynamic page

I have a website where each person has his personal profile. I would like to have static URL like mywebsite/user1, mywebsite/user2, but actually I would remain in the same page and change the content dynamically. A reason is that when I open the…
DeLac
  • 1,068
  • 13
  • 43
0
votes
1 answer

htaccess rewrite AJAX url to pretty link

I am working with a Wordpress theme that is driven on AJAX. A nice way to load content, but not so much for SEO purposes. The URL's all and width the 'same' string like for example: #menu-item-44 (the only difference will be the number at the…
0
votes
0 answers

How do the Facebook like button and Google +1 button deal with a redirected url?

My current url format is like this: http://www.wunderwedding.com/weddingvenues/venues/343/venue-name I want to rewrite my urls to a more friendly format: http://www.wunderwedding.com/weddingvenues/venue-name-343 Of course I will have to 301 redirect…
Adam
  • 6,041
  • 36
  • 120
  • 208
0
votes
2 answers

Using RewriteRule on Friendly-URL - Get Variables with Redirect 301

I'm having some problems. I searched a lot, tried variations, and still can't get this working. My aim is simply this: Redirect: http://site.com/folder1/folder2/page To: http://site.com/folder1/folder2/Page Notice that I'm using "Friendly URLs". Now…
0
votes
1 answer

MyBB URL rewrite won't work

I'm trying to enable URL rewrite on my MyBB board, i enabled it in Admin CP and i put default .htaccess file which come with board into my forum root but when i try to access thread, it returns: The requested URL /thread-86-lastpost.html was not…
xZero
  • 645
  • 2
  • 9
  • 24
0
votes
1 answer

Url Rewrite Regex

I am having trouble with a pesky URL rewrite, the URL ~/global/products/en/page?sdfsdf=sgdfg works perfectly without the query string but wont work with it. Can anybody help? The mobile site ~/global/products/en/m/page uses the same rules which is…
Chiefy
  • 179
  • 2
  • 17
0
votes
1 answer

Java Spring Friendly Url mapping issues

I've been trying to implement friendly url mapping in my first Java spring site. I've been following this tutorial. http://outbottle.com/spring-3-web-mvc-friendly-url-using-requestmapping-variable-uri/ My current mapping works well with id's as…
user1171884
0
votes
1 answer

Pretty Urls with Mod_Rewrite

I would like to rewrite the following URL string from: product.php?category=abstract_and_patterns&page=1 To: abstract-and-patterns Now it's important to note that both the category and page variables will always be different depending on what page…
Gareth Daine
  • 4,016
  • 5
  • 40
  • 67
0
votes
1 answer

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…
Matthew Dresser
  • 11,273
  • 11
  • 76
  • 120
0
votes
3 answers

Friendly URL from query srings URL

What is the best way to do when I type a search on my site to get the url like mysite.com/searach/blabla/video instead of mysite.com/?search=blabla&type=video. Please don't tell me that I have to use CodeIgniter because it doesn't help. I am sure…
Bengau
  • 175
  • 5
  • 14