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

Determing the physical path of a user friendly url

I have been asked to look at updating an old ASP.net Web Forms application to ASP.net 4.5; specifically to implement Microsoft's 'User Friendly' routing mechanism (NuGet Package Microsoft.AspNet.FriendlyUrls). Generally, the upgrade was…
Neilski
  • 4,385
  • 5
  • 41
  • 74
0
votes
0 answers

RewriteRule htaccess friendly url

I'm trying to make firendly urls. My site url is: domain.pl/index.php?str=prod_big&idk=869&kat= My .htaccess code is: RewriteCond %{HTTP_HOST} !^domain\.pl$ RewriteRule ^(.*) http://domain.pl/$1 [R=301,L] RewriteEngine On RewriteRule…
0
votes
1 answer

htaccess friendly urls 3 parameters

I've got an address like this: /?pid=74&sid=381:naprawairegeneracjaturbosprezarek24hjozefkrezolek and i want to have: /74:381:naprawairegeneracjaturbosprezarek24hjozefkrezolek or better: /naprawairegeneracjaturbosprezarek24hjozefkrezolek my…
0
votes
1 answer

Needing some mod_rewrite help

I have a php script that takes in five variables from the url string like this: /dimg.php?s=250x250&tc=0-0-0&bc=204-204-204&type=jpg&t=blahText The only required variable is s. The script defaults if all the others are not set. My question is how do…
Josh Brown
  • 861
  • 2
  • 10
  • 19
0
votes
1 answer

Use Slug and id in URL with Friendly_Id Gem

I am using Friendly_id gem to create Clean URL and it work just fine but instead of having a URL like this http://localhost:3000/profile/jack-sparo I want a URL like this http://localhost:3000/profile/1/jack-sparo where 1 is the user_id, so how can…
Loenvpy
  • 899
  • 1
  • 10
  • 30
0
votes
1 answer

Customizing Friendly_id URL

First I am sorry for my English I am using Friendly_id gem to create Clean URL and it work just fine but instead of having a URL like this http://localhost:3000/profile/jack-sparo I want a URL like this…
Loenvpy
  • 899
  • 1
  • 10
  • 30
0
votes
0 answers

IIS 6 very page is preceded by default.aspx

I am using IIS 6 and we have site which is using Friendly URL..I am getting weird error all the pages are preceded by default.aspx. e.g suppose Page is WWW.Test.com/blog , the page is redirected to www.test.com/blog/default.aspx. Anyone faces this…
0
votes
2 answers

Rails: routes whith Friendly id gem

First sorry for my english i am french I am using Frindly_id gem to generate clean url and it work just fine i still have a problem, for example let's say i have a user with user_id=1 and a full_name = = "olivier logaro" so when i go to this user…
Loenvpy
  • 899
  • 1
  • 10
  • 30
0
votes
2 answers

How to use ReturnUrl in asp.net FriendlyUrls?

I am beginner to FriendlyUrl concept in asp.net. I want use ReturnUrl for login page. Can still use http://localhost:8080/login?ReturnUrl=/page? So once user logins in will be redirected to returnurl
James123
  • 11,184
  • 66
  • 189
  • 343
0
votes
1 answer

Ruby on Rails: Changing friendly URL based on database value

I currently have my URL set up where it will be like this: localhost:3000/user/3 using this in my routes file: resources :users, path: '/user' do Technically I can change /user to anything if I want to change it, for example: /profile will then…
hellomello
  • 8,219
  • 39
  • 151
  • 297
0
votes
1 answer

.htaccess setup for pretty url with submenu

I would like to create a simple page with pretty url and a two-level menu. I use a directory in localhost, but of course, on the server i don't (That's why i commented the RewriteBase). I've have the following .htaccess setup: Options…
kree
  • 440
  • 1
  • 9
  • 26
0
votes
1 answer

How to rewrite ssl and friendly URL using .htaccess

I have problem with following .htaccess rewrites. RewriteEngine On RewriteRule ^([a-zA-Z0-9\-\,]+)$ index.php?s=$1 RewriteCond %{HTTPS} off RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] When I access site with…
vulg
  • 13
  • 2
0
votes
1 answer

Mocking Asp.net FriendlyUrls

Has anyone mocked FriendlyUrls for unit testing? I am writing a test that needs to mock asp.net FriendlyUrls. The call I need to mock specifically is Request.GetFriendlyUrlSegments(). I am using MS Fakes. Here is my test so far: // Arrange …
twifosp
  • 277
  • 2
  • 7
  • 16
0
votes
2 answers

Magento SEO links

My client knows a little about SEO , but I don't. According to him , our urls are not fine because they are duplicated. Here are the examples of what is happening:   Our website sells cookware, so we have the following categories, for example: Cast…
0
votes
1 answer

How can I create (custom) friendly URL in Wordpress?

In Wordpress, I have set the permalink structure like this: /%category%/%postname% After creating a custom search page, I now have the following URL: http://mypage.com/search?foo1=bar&foo2=&foo3=&foo4= I have two questions: 1) How can I transform…
Steven
  • 19,224
  • 47
  • 152
  • 257