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

Wordpress website - allow friendly URL's of externally generated sub pages through htaccess

I've built a WordPress website which incorporates an external vacancy-database. The vacancies are loaded through an iframe on the WordPress vacancies page. Each of the vacancies has a unique ID, which generates a URL such as vacancies?ID=22342302.…
Boris
  • 1
  • 2
0
votes
1 answer

Remove /index/ from Zend Paginator

i'm having a little trouble to remove 'index' from paginates url with Zend Paginator, here is my app.ini: resources.router.routes.usuarios.route = /admin/usuarios/pagina/:pagina resources.router.routes.usuarios.defaults.module =…
wiLLiamcastrO
  • 238
  • 3
  • 13
0
votes
1 answer

ASP.NET FriendlyUrls API - Customising what is classed as a mobile device

Thanks to an awesome article by Scott Hanselman I managed to implement Microsoft.AspNet.FriendlyUrls in relatively quick time. One thing I'm struggling with is where I can customise what is classed as a mobile device. Has anyone had any success with…
Darthtong
  • 1,017
  • 4
  • 18
  • 30
0
votes
1 answer

joomla mvc component redirect with friendly url

I got a code like this in my controller class MyController extends MyBaseController { function redirectToCart() { $link = JRoute::_('index.php?option=com_foo&view=cart'); $this->setRedirect($link); } } I also created a menu associated…
Duc Phan
  • 175
  • 1
  • 3
  • 14
0
votes
1 answer

htaccess redirect for dynamic urls not working

I basically want: http://example.com/index.php?page=abc to redirect to http://www.exmaple.com/abc I have: RewriteCond %{QUERY_STRING} ^page=(.*)$ RewriteRule ^index.php$ %1? [R=301] RewriteRule ^%1$ index.php?page=%1 [L]
0
votes
1 answer

Trying to make my webpage (desktop mode view able for mobile) with media queries?

I had a quick question, my website is darthvixcustomsabers.com and I am trying to make each of my web pages viewable on my mobile device. Not necessarily look different, but just be view able on my phone . I was thinking of using aspect ratio media…
Terry
  • 142
  • 4
  • 16
0
votes
2 answers

Rewrite just one word in the url with .htaccess

I have this url: www.mysite.it/index.php?page=search&sOrder=dt_pub_date&iOrderType=desc&sPattern=MOTO&sCity=Pisa&sPriceMin=&sPriceMax= It is a url that results from a search button (MOTO in Pisa city). Is it possible to rewrite the words…
0
votes
1 answer

Wordpress - extra 'pretty' parameter on the URL string. Mod_rewrite?

I'm currently developing a WordPress site that has an unusual taxonomy. In order to get around certain issues I need to add a parameter to the end of the URL. I have this working, however I need some way of using mod_rewrite to make the parameter…
Andre
  • 233
  • 8
  • 24
0
votes
2 answers

ASP.NET MVC 4 routing friendly URL

I found this website have nice URLs. But I don't know how to create routes like that. My format is like: www.domain.com/{country}/{category-name} ---> www.domain.com/japanese/restaurant www.domain.com/{country}/{restaurant-name} --->…
Jeph
  • 3
  • 1
  • 3
0
votes
1 answer

Webforms 403.14 Error IIS 7 when viewing Friendly Urls

I am running into trouble using the Friendly Urls nuget package in my Webforms website. Works locally and on my vanilla Amazon web server. However, it causes errors on our server at work. I have tried adding the bundle stuff in the web.config etc.…
Hazza
  • 6,441
  • 3
  • 24
  • 37
0
votes
2 answers

htaccess simplified and remove need for trailing a slash

I am writing my very first htaccess and would like help cleaning it up and understanding it. The first issue I am having is with mulitple parameters. my current setup looks like: Options +FollowSymLinks RewriteEngine On RewriteCond…
Robert E. McIntosh
  • 5,557
  • 4
  • 26
  • 35
0
votes
1 answer

Pretty Faces EL Injection does not work

I am building an online application in JSF 2 with Primefaces and Spring. I want to use Pretty Faces to make our search urls bookmarkable. Here is my pretty-config.xml:
xgb84j
  • 519
  • 2
  • 8
  • 19
0
votes
2 answers

Defining root URL in Simfony2

Let's say I have a Symfony webapp and it is in a subfolder of my webroot path/to/root//Symfony/ So if I would want to call my page I have to enter http://host.tld//Symfony/web But as you can imagine I would like everyone just…
Gottlieb Notschnabel
  • 9,408
  • 18
  • 74
  • 116
0
votes
1 answer

Friendly url with mod_rewrite

I have an URL like this http://localhost/rilo/listing.php?id=2 where "rilo" is the root and I'd like to get friendly URL like http_//localhost/rilo/listing/2.html And here's the htaccess Options +FollowSymLinks -MultiViews # Turn mod_rewrite…
Marco Abate
  • 21
  • 1
  • 6
0
votes
1 answer

Rewrite URL with .htacess without changing address bar

I am working on a LAMP setup on a shared HostGator server. I am currently trying to create more friendly urls. I need to forward addresses like this: http://usafarmtrader.com/posts/city-state/title-3869.htm to…
Helto
  • 565
  • 1
  • 4
  • 17