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

Pretty urls not redirecting in Yii2

I have an action name cart in site controller and I have used pretty URL so my URL is WWW.test.com/cart But I want to redirect if someone enter WWW.test.com/cart/, then it should be redirected to WWW.test.com/cart. I don't have cart controller.
rAnA bilAl
  • 36
  • 4
0
votes
1 answer

Why is my .htaccess code not working perfectly for pretty URL

I am using the following .htaccess code to make pretty url. # code to make pretty URLS | we're using this code to achieve /category/slug RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.+)/([\w-]+)/([\w-]+)$…
Akshay Shrivastav
  • 1,115
  • 4
  • 17
  • 43
0
votes
0 answers

Yii urlManager rules

What do I have to write in config main.php in order to change a couple of urls: 1. From 'page?role=4' to 'new' 2. From 'site/page/85' to 'anothernew' The following rules do not work inside the urlManager, they return a page with a header but no…
SourceS
  • 59
  • 1
  • 8
0
votes
1 answer

Topic redirects with addition characters

I really appreciate the help you guys have been rendering to people. I am using Pretty URL for SMF. I want to redirect a topic to another but the URL for the page which the Pretty URL gets the content it displays is attached to the URL after…
Mattizzy
  • 16
  • 2
0
votes
1 answer

htaccess pretty urls not working on some pages

Some help needed with my htaccess pretty urls. I uploaded this htaccess file to my public html: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] It works for the most part, but for pages that I created after…
Andrew
  • 25
  • 7
0
votes
2 answers

How to redirect - rewriten urls to short urls

I have changed my site url structure. But, Google indexed urls are giving 404 not found error. Now, I need a .htaccess rewrite rule for, From url: www.mydomain.com/topic-titles-here-t273.html To url: www.mydomain.com/sub-folder/topic273.html (Topic…
user625118
  • 29
  • 1
  • 6
0
votes
2 answers

Yii2 -- Pretty Url -- Domain to Controller/Action with parameters

What will be the rules for my pretty url if I have the following scenario: links like this where parameters may vary. domain/?bt=&e= or domain/?lt=&e= then should be processed in a controller/action. ie.…
brt305
  • 7
  • 1
  • 5
0
votes
0 answers

Remove '#' in Angularjs - Ui.router urls

In my project, there are two root folders 1.'tpapp' for angular js codes(client side) and 2.'tp_app' for codeignitor(server side).Apache as server. I am using ui.router ver.0.2.8.I want to remove '#' symbols from the urls. In my app.js file…
0
votes
1 answer

.htaccess Pretty URLS issue

Having a bit of a problem and wondering what I've done wrong. Options -Multiviews RewriteEngine On RewriteBase / RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.rentus.com/$1 [R=301,L] RewriteRule ^([a-z]+)\/?$ $1.php…
ValhallaSkies
  • 61
  • 1
  • 12
0
votes
1 answer

yii2 enable prettyurl cause Internal Server Error

'components' => [ 'urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, ], /*other codes*/ .htaccess Options +FollowSymLinks IndexIgnore */* RewriteEngine on # if a directory or a file exists,…
Yuzuha
  • 92
  • 2
  • 12
0
votes
1 answer

yii2 pretty url with anchors

How to enable pretty urls in yii2, and permit the use of anchors? I have a website, where in the main page I need to use anchors. Without enabling pretty url every thing was running perfect with the use of Url::to(['site/index', '#' => 'work']) in…
Galilo Galilo
  • 519
  • 5
  • 22
0
votes
0 answers

how to get pretty urls in hapi js

I have my server.js file working. at localhost:8080 it will serve the file i give it from the the corresponding url name like so http://localhost:8080/about.html, as long as the file exists in public/pages. I'm wondering if I can somehow set a…
kiko carisse
  • 1,634
  • 19
  • 21
0
votes
0 answers

Coldfusion 11 MVC and pretty URL

I'm currently creating a website using my personal MVC architecture. Doing the edits on Coldfusion Builder 2016, which I believe that by default, my website is running on Tomcat Server. I have 3 separate folders for the MVC : model, view,…
0
votes
0 answers

apache mod-rewrite in .htaccess for angularjs pretty urls not loading css, partials , javascript on refresh

I have been looking around for a while but even after all the stackoverflow and other content I haven't got this to work. I can turn AngularJS 1.x urls into pretty urls (so removing the fragment by replacing # by /) just fine when starting from…
Sleenee
  • 594
  • 1
  • 8
  • 21
0
votes
1 answer

Hide controller and action in pretty URL with Yii2

I need to change a URL in Yii2 using the URL Manager from http://www.domain.com/index.php?r=tamil-article/articles&categ=Innovation&id=44 to http://www.domain.com/44/Innovation.html How can this be done?