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

What should I do to make the pretty URLs using .htaccess for my specific scenario?

Here's my full case: mvcframework directory inside /var/www/html/ dir. mvcframework contains a public dir with index.php acting as a frontloader. I am creating a .htaccess file inside public directory with following code:
2
votes
2 answers

How to send get parameters as pretty URL on search form in Laravel?

I have search form to list properties/ads through certain criteria (city, price, quadrature, property type). I am trying to get pretty url like this for example project/search/city/London/price/1_10000/quadrature/1_150/propertyType/flat instead…
mrmar
  • 1,407
  • 3
  • 11
  • 26
2
votes
1 answer

How to make a site with pretty URLs with i18n?

First of all, I read this issue which seemed to me to correspond to solving my problem but I don't understand it after several rereading and testing: https://github.com/i18next/react-i18next/issues/325 (maybe because I'm not using react) I also…
2
votes
1 answer

Pretty Url for ONLY .html

The other day I tried making my html pages into pretty urls with the [.htaccess] code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.html [NC,L] This worked for my html pages fine, but when I went to parts of my…
Rareform
  • 23
  • 2
2
votes
0 answers

Wordpress rewrite retrieve query var

I'm trying to create a Wordpress rewrite rule, but for the life of me, cannot retrieve the query variable. I have a page called current-releases. I'm trying to add another parameter to the url, for…
Karl Campbell
  • 325
  • 1
  • 2
  • 8
2
votes
1 answer

.htaccess rewrites are conflicting / pretty urls

I have a website where the url looks like this: example.com/sample?m=1389&t=name-title but I want it to look like this: example.com/1389/name-title I think two of the rewrites are conflicting. The top one is to remove the .php off of every page and…
2
votes
1 answer

Wordpress custom url

I have this URL (www.yourdomain.com/view-promotion/123) which will use the Page Template to display my Custom Post Type content. (123 is the CPT post id) However, if I change the URL from the above to…
Noobie
  • 105
  • 1
  • 10
2
votes
2 answers

Using path parameters in with PrettyFaces

Many pages in a typical JSF applications are dynamic, meaning that there is a template view that would be used to render every object of a given type. For these pages PrettyFaces rewriting solution works great and effortless. An example is a web…
skuntsel
  • 11,624
  • 11
  • 44
  • 67
1
vote
2 answers

Changing separating character in Zend URLs

Using the Zend Framework and the url method for the view: $this->url(array('field1' => this, 'field2' => 'is', 'field3' => 'my example'), 'route_name'); Where route_name is the name of the url route and each field# is retrieved from the…
AKFourSeven
  • 1,305
  • 3
  • 18
  • 31
1
vote
1 answer

How do I map path components into query parameters using mod_rewrite?

How would I change this: http://www.mattvisk.com/?page=portfolio&item=rae To this: http://www.mattvisk.com/portfolio/rae
Matt Visk
  • 11
  • 2
1
vote
0 answers

How to access project.test (Laragon virtual host) from other device in one network WIFI?

I managed to access my local project on a server pc using a smartphone on one network by typing ipAddressServer/projectName/public. but I can't access it with virtual host projectName.test. how to access with virtual host?
BryanJo
  • 11
  • 1
1
vote
1 answer

.htaccess appending URL Slugs with the anchor tags

I am creating a blog in Core PHP to get a better understand of the core functionalities of CMS. However, I am facing a challenge in the menu when I am displaying a single post. I am using the below .htaccess code # code to make pretty URLS | we're…
1
vote
0 answers

Creating a custom url for an static html page

I need to create a page like http://www.example.com/strong and the file to support that are inside my docroot/strong/index.html. Inside my docroot there are other folders with their index file as well. For example…
Neela
  • 311
  • 1
  • 4
  • 16
1
vote
1 answer

Angular JS - views did not change with html5Mode(true) but URL does

I am trying to get rid off #! from URL. I have the following code HTML and JS,
Struse
  • 75
  • 3
  • 13
1
vote
0 answers

Htaccess Pretty URL prevent access to original directory (duplicate pages)

EXPAINATION In my htaccess file I have pretty urls set up, such as: RewriteRule ^pricing$ /pages/pricing.php [L] It works as expected, when the user goes to the following url: http://www.example.com/pricing It also works when the user goes…
Jolan
  • 11
  • 3
1
2
3
11 12