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
1
vote
2 answers

URL Beautification using .htaccess

in search of a more userfriendly URL, how do i achieve both of the following, elegantly using only .htaccess? /de/somepage going to /somepage?ln=de /zh-CN/somepage#7 going to /somepage?ln=zh-CN#7…
Sam
  • 15,254
  • 25
  • 90
  • 145
1
vote
1 answer

HTML 5 mode deep link and refresh not working AngularJS

I am using ng-viewport to display my pages in the index.html, in HTML 5 mode everything is working fine when we open the base url (e.g. http://localhost:86 ), which loads and get onverted to (http://localhost:86/app/dashboard ) which is my home or…
Sajid Syed
  • 34
  • 5
1
vote
1 answer

Changing the URL and not reloading a page (this time without a url fragment)

Just wondering as to how did Google code this website without it reloading the website when the page AND url are changed. Take a look and go from page to page. http://www.20thingsilearned.com/ I've done a similar technique using a # hash change…
matsko
  • 21,895
  • 21
  • 102
  • 144
1
vote
2 answers

pretty url not working on laravel5.2

It seems that pretty URLs are not working for me. I have tried every thing I know, when you try http://wasamar.com.ng/login it gives a response of 404 Not Found but http://wasamar.com.ng/inde.php/login is ok, I have edited my public/ directory's…
udemethegrtman
  • 107
  • 2
  • 14
1
vote
0 answers

Ruby On Rails - friendly_id - URL has spaces instead of Hyphens

Ok folks I have been struggling with this for a couple days and I am totally confused at this point. I am running Rails 5 and Ruby 2.3.0 From my understanding on ROR that if I load a url with like this post/3-DIY-Mirror ActiveRecord is able to…
1
vote
1 answer

Yii2 Need explanation for pretty url rules

how can I prettify the following url: group?id=1&page=7&per-page=12 to look like group/id/1/page/7/per-page/12 My UrlManager currently looks like this: 'urlManager' => [ 'class' => 'yii\web\UrlManager', 'enablePrettyUrl'…
user6800537
1
vote
0 answers

Wordpress Problematic URL

I have a custom page in wordpress that uses a custom plugin which is connecting to an API to retrieve information. The client has asked that we don't pass id's via the url as below: http://beta.hirehere.co.uk/hire-vehicle-detail/?id=4 but instead…
1
vote
0 answers

How to access a controller with pretty url in Yii2

This might be a dumb question, but I can't do it. I've searched about this for a long time but still haven't found anything. I'm using Yii2 advanced template and I'd like to remove the "frontend/web/" and "index.php" so it will have a pretty URL,…
Henry Gunawan
  • 922
  • 3
  • 18
  • 38
1
vote
0 answers

Having problems with AngularJS html5Mode

I am currently having trouble with AngularJS html5Mode. I am working on a blog site that is hosted on my localhost WAMP server. I have a base URL defined in my index.html file and I have html5Mode set to true in the config section in my app.js file…
1
vote
1 answer

Generating dynamic URL on creation of a blog entry using Struts2

I have a music blog, where people can write their own article or review as a blog entry and it would show up among other blog entries. Each blog entry should have a URL associated with it, similar to: www.myblog.com/blog/title-of-blog-entry How…
1
vote
1 answer

htaccess pretty url and force www

I've been using following code to achieve pretty urls: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^([^/\.]+)/?$ index.php?p=$1 [L] And it is working fine. However, I also need to force my…
Kornel
  • 13
  • 3
1
vote
2 answers

create pretty url in yii2 not work

I want use pretty url in yii2 in web directory .htaccess file: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . index.php In config/web.php: 'urlManager' => [ 'class' =>…
javad
  • 11
  • 1
1
vote
1 answer

htaccess url rewriting, ignoring files

I am trying to come up with a rewrite rule, but I am having problems. What I need - any url that starts with /services/XXX to be redirected to /services/api.php?service=XXX I also want to ignore any files or folders that might also match. What I…
YemSalat
  • 19,986
  • 13
  • 44
  • 51
1
vote
1 answer

Laravel Localhost or pretty url not working

I have installed composer on windows 8 and i am using the webserver xampp, I did the comand composer global require composer global require "laravel/installer=~1.1" I even configure env path for composer like this set…
1
vote
1 answer

Joomla pretty link to article

I want to create a button with a link to an article for which I have the ID. I get the ID from a form field which returns a menu item ID. So far I've tried this:

read it

result…
ComputerDully
  • 157
  • 1
  • 1
  • 8
1 2
3
11 12