Questions tagged [pretty-urls]

Pretty URLs are URLs that are SEO-friendly and easy-to-read.

Pretty URLs are URLs that are SEO-friendly and easy-to-read. Usually, the pretty URLs are handled by rewrite engines, which convert the pretty URLs to query variables that the server understands and can use within the executed scripts. Pretty URLs have many pros - they are easy to read and more understandable from the user, and easier to index by the search engines. They are easier to manage and make more sense for the users when navigating the websites. There aren't many cons, but one that is worth to be mentioned is the fact that pretty URLs may fail to work on some servers, where the rewrite engines are disabled.

175 questions
0
votes
1 answer

How to create a pretty URL?

How can I create a pretty url like this customer/index/amount/12000/location/in . In Yii1.1 it was available by default. it was easy to enable pretty url. In Yii2 if need pretty url I've to write rules for every action !!! In Codeigniter you will…
Bloodhound
  • 2,906
  • 11
  • 37
  • 71
0
votes
1 answer

Cakephp url routes

My current url is baseUrl/categories/category/categoryName/subcatName... To convert this url into baseUrl/categoryName/subcatName... i am using following route Router::connect( '/:slug/*', array( 'controller' => 'Categories', …
0
votes
0 answers

Can't Keep Pretty Url with htaccess

I'd like to have url like mydomain/a/b from mydomain/page.php?a=$1&b=$2 The htaccess file understand that I want to go to mydomain/page.php?a=$1&b=$2 when i use mydomain/a/b but he change the urlname to mydomain/page.php?a=$1&b=$2 and I don't want…
0
votes
1 answer

.htaccess RewriteRule not working, bad flag delimiters

My site previously uses URL's like this: /folder/page Previously, you could prepend 'panel' in the URL to edit the current page: /panel/folder/page We upgraded our CMS, and the new URL to edit the page is in this format:…
ebi
  • 4,862
  • 6
  • 29
  • 40
0
votes
1 answer

Pretty URL/Clean URL + nginx

I'm trying to get example.com/language/en to point to example.com/language?lang=en I've already got the @language to work (kind of, there's still some bug that I explain in the end) but unfortunately I don't know how to make the @language and the…
Daniel P
  • 69
  • 1
  • 11
0
votes
2 answers

Need to pass backslashes in query string with pretty urls

I'm trying to pass a backslash as part of a query string argument. The project uses a pretty simple url_rewriting method: //.Htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .*…
CarlosCarucce
  • 3,420
  • 1
  • 28
  • 51
0
votes
2 answers

Include fails when mapping pretty urls to actual urls (PHP/.htaccess)

First time I've tried making pretty urls and this is my system, .htaccess maps everything back to index.php, index.php splits the URL into an array, then uses a case statement to decide how to proceed. .htaccess: RewriteBase / Options…
AviateX14
  • 760
  • 4
  • 18
  • 36
0
votes
1 answer

Alternative for Options MultiViews on new Apache

i am using in htaccess AcceptpathInfo On Options MultiViews MultiviewsMatch Handlers to set pretty URL and something more. This set extension in filename as optional. For examle http://server.com/index will be the same as…
Misaz
  • 3,694
  • 2
  • 26
  • 42
0
votes
1 answer

PrettyUrl from some string like (Áccent, - () #$%someText&/) Characters

Is there any existing library or code for ASP.NET MVC that can transform some string into a pretty url much like stackoverflow does with questions ? Having the string: Hello there! This is some weird with accénted words and funcky - / Characters…
Bart Calixto
  • 19,210
  • 11
  • 78
  • 114
0
votes
2 answers

Nice URL in JQGrid using a showlink formatter

I'm trying to get an URL of the form http://xxxxx/application/sorting-plan-definition-edit/55555 (with 55555 the id of the row) in a JQGrid. I tried with a showlink formatter, but to no avail. If I do something like that: formatoptions: { …
Alexis Dufrenoy
  • 11,784
  • 12
  • 82
  • 124
0
votes
1 answer

Problems with htaccess and urls of images hosted on my server

I have the following htaccess to make my urls friendly site Options -Indexes +FollowSymLinks RewriteEngine on RewriteBase /miblog/ RewriteRule entry/(.*)$ notice.php?id=$1 Thus, if I write entry / news appears id_notice me up there all right. The…
0
votes
0 answers

Rewrite Role does not apply

I have php website and I have created .htaccess file. I have two rules. One for force www and other for permalink. I want to change following Url http://www.yatha.tv/play.php?vid=1437&id=1 to http://www.yatha.tv/1437/1.html But this rule does…
Alex Aung
  • 2,637
  • 5
  • 34
  • 63
0
votes
1 answer

How to write a pretty URL in Struts 2?

I want to rewrite my URL in Struts2. How can I customize URL which shouldn't show my parameter that I am passing and also show action with different name. I don't know how to do it. I have to use plugins for that or configure my code in…
0
votes
2 answers

How to automatically make pretty urls

I have a site that I'm working on, but I'm annoyed that I have to work with ugly URLS. So, I have a URL of http://example.com/user.php?id=54 and another of http://example.com/foobar.php?name=Test. How could I convert both of them to pretty URLS…
0
votes
0 answers

.htaccess clean urls from controller/action

I use a MVC that would load this url website.com/controller/action by accessing the 'controller' directory and looking for a file called action.php which works great. No I have some longer urls that I would like to clean, say I…
matt
  • 2,312
  • 5
  • 34
  • 57