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
0 answers

Yii2 advances app rest api pretty url not working

This is my folder structure -api -config main.php -web .htaccess -backend -config main.php -web .htaccess -frontend -config main.php -web .htaccess in my api/main.php I enabled pretty url.…
Ebin Manuval
  • 1,235
  • 14
  • 33
0
votes
1 answer

WordPress rewrite rule for pretty URL not working

I am using Wordpress rewrite rules and I want to have a URL like this: http://my-app.com/data-library/brand_name Here is my code: function my_add_rewrite_rules() { add_rewrite_rule( '^data-library/([^/]*)/?', …
0
votes
1 answer

Yii2 UrlManager rule for tabular parameters

can I prettify tabular parameter like the following: http://start/compare?art[]=CG%20110142&art[]=CG%20110144 and make it look like: http://start/compare/art/CG%20110142/art/CG%20110142 or: http://start/compare/art/CG%20110142/CG%20110142 If…
user6800537
0
votes
2 answers

Url refresh and reload not working after removing # sign from url angularjs

My app.js app.config(['$routeProvider','$locationProvider', function($routeProvider,$locationProvider) { $routeProvider. when('/', { templateUrl: 'interests.html', controller: 'InterestsController' }) …
Abdul Moiz
  • 1,317
  • 2
  • 17
  • 40
0
votes
1 answer

Angularjs - How to remove the # from the url - Error: Failed to execute 'pushState' on 'History':

I tried everything in other posts regarding removing the fragment identifier (#). Everything works as it should with the # identifier, but it would be a nice improvement for my project. I configured the $locationProvider and set html5Mode to…
0
votes
0 answers

Laravel routes and pretty urls doesn't work

I'm new in Laravel. I develop a project on my local computer and it works properly. But when I publish it to the server, I just can see the main page and pretty URLs (contain CSS files and all other directories) and Laravel routes doesn't work. Here…
0
votes
1 answer

How to create pretty url using htaccess

I have a link like http://example.com/file.php?id=7gJKw2&d=78sfmnnsd8 I want to make this above url as http://example.com/file/7gJKw2/78sfmnnsd8 Here is what I've tried RewriteRule ^file/([a-zA-Z0-9_.-]+)$ file.php?id=$1 RewriteRule…
user6373207
0
votes
0 answers

PHP file extension removal via .htaccess not working

Brief Hey guys, I will qualify this post by saying I'm an .htaccess beginner and am hacking my way through this at the moment. I'm hoping this will yield a solution but also be a learning experience. Issue Currently, I'm having trouble removing the…
Brian
  • 3
  • 2
0
votes
1 answer

Fliendly_ID - URL not being displayed

I am new to ROR and working on a small project. Recently I added the friendly ID gems and followed the instruction on the documentation. But I can't seem to get the URL working. I added the friendly id to communities model which is basically your…
0
votes
2 answers

How do I redirect "website/page" to "website/page.html" when people type it in browser (pretty-url)

I recently started using a static site with godaddy.com without a cms. It's a basic website I uploaded and is only html/js/css. When people type "website.com/page" they get 404 not found. When they type "website.com/page.html" they get the correct…
jtlindsey
  • 4,346
  • 4
  • 45
  • 73
0
votes
1 answer

Yii2: how to call action in url with use "pretty url"

Without pretty url route has view http://192.168.100.5/index.php?r=tweet/statistic&from=20160320&to=20160325 and it`s work well. As docs say when 'enablePrettyUrl' => true /tweet call default action - and it`s work well also But for other actions…
user199588
  • 539
  • 2
  • 6
  • 21
0
votes
1 answer

Pretty Urls with Iron Router and friendly slug package

I can't figure out how to output the right data with this pretty slug package, any help would be greatly appreciated. I am using the following package from atmosphere in Meteor. https://atmospherejs.com/todda00/friendly-slugs I have a form…
Anders Kitson
  • 1,413
  • 6
  • 38
  • 98
0
votes
1 answer

Angularjs base tag and $locationProvider prevents templates to be loaded

I want to remove the # on angularjs url. So I followed this blog. This is my .config() : .config(['$stateProvider', '$locationProvider' function($stateProvider, $locationProvider,) { $stateProvider.state('main', { url: '/', …
jofftiquez
  • 7,548
  • 10
  • 67
  • 121
0
votes
0 answers

Bookmarking in SPA with page.js using deep links and pretty url

I am getting into SPA programming and have a working app with page.js. I searched stackoverflow and page.js but cannot figure out how to process the URL requests like /record/Name1 when a page is reloaded (or loaded after being shared or…
0
votes
1 answer

angularjs ngroute with html5mode(true) on apache fails

I am trying to use ngroute with $locationProvider.html5Mode(true) and a htaccess rewrite, but I can't get it to work. When I try to access for example http://localhost/angular_blog/article/someTitle I get the following error in my…