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

Understanding the mod rewrite [SMF forum] [Pretty URLs Mod]

I have SMF installed in the root of my domains directory, with a portal acting as the front end of my website. Portal = Home [mydomain.com] SMF = Forum [mydomain.com/forum/] The Portal creates custom pages which look like…
CJ87
  • 1
  • 1
0
votes
0 answers

Would this .htaccess double index in google?

Would this htaccess double index? It's working fine for making urls pretty (removing .html, removing / and just having example.com/subdomain) but I don't know if google or any other search engines would have problems with it, since I read it might…
0
votes
1 answer

How to hide id query in Yii2 Url

I've this Url "backend/codici/view?id=1" and I want to hide the id, because I don't want to show it. It must be only "backend/codici". I try enabling Pretty Url but it doesn't work. This my config/web.php file: 'urlManager' => [ …
jackall90
  • 11
  • 4
0
votes
1 answer

Oracle Apex pretty URL

i need help for a problem. Before someone complain. I have post the same question in another forum but i didn't get any useful help there. https://community.oracle.com/tech/developers/discussion/4497783 I have seen there are a lot of things if i…
0
votes
0 answers

How to make my Yii2 urlManager Rule works? It returns 404 error

Please provide me some light! I have this existing rule 'urlManager' => [ 'enablePrettyUrl' => true, 'enableStrictParsing' => false, 'showScriptName' => false, 'rules' => [ [ …
lordrebs
  • 11
  • 2
0
votes
1 answer

my rewriterule's are not working correctly in the htaccess file

Im trying to create pretty urls for a site im currently working on but each time i navigate to the pretty url it tells me the page dont exist, could someone take a look at my code and see what i am missing or doing wrong I have watched tutorials and…
user7359060
0
votes
1 answer

Rewrite path segments with name value pairs to query parameters

I want to rewrite pretty urls to a query parameter in my .htaccess file using regex. So that: https://www.example.com/s/file/name1/value1/name2/value2/name3/value3 gets rewritten…
0
votes
1 answer

PHP simple routing - error of undefined offset 0

I'm doing my first php router and tried many tutorials, for example: The simplest php router, How to build a basic server side... And a few other, and finally went for this approach Create a PHP routing system First my problem was that I only got…
0
votes
1 answer

How do I rewrite my URL to the underlying filesystem path with a query string?

I need help with URL rewrite. I will like to make this URL (https://example.test/bet/r/?r=fad5v) look like this (https://example.test/bet/fad5v). What's the best way to do this so that when https://example.test/bet/fad5v is visited, it opens the…
0
votes
1 answer

How to beautify pagination URL in laravel 6.x

I have a website where I used pagination . But the url is making pagination url such as http://website.com/user?page=2 But I want to beautify it as http://website.com/user/2 I am using laravel 6. how can I make it to do?
0
votes
2 answers

pretty-urls not working with XAMPP and Laravel 5.8

I use Laravel v5.8 and I was happy to use it in VMware with Ubuntu. Now I needed to change to a Windows Server 2012 with xampp. There is one thing I cannot eliminate: I can visit my page over…
sicreep
  • 68
  • 8
0
votes
1 answer

Htaccess Internal Rewrite with arg + uri

I'm trying to perform an internal rewrite of example.com/abc to example.com/?//abc where 'abc' can by any string. Tried the following rule: RewriteEngine On RewriteRule ^(\w+)/?$ /?//$1 [L,QSA,NC,PT] However this is not redirecting as expected.…
0
votes
0 answers

Is there a jQuery approach to pretty urls

Is there a way I can implement a url like "www.example.com/profiles/male/johndoe" without any . htaccess code? The reason is that . htaccess is too complicated for my understanding, the little htaccess code I've been able to write keep clashing with…
Stephynoe
  • 1
  • 1
0
votes
1 answer

htaccess modification for pretty urls causes endless javascript loop on bootstrap sourcemap error in Chrome Inspector console

Beginner at .htaccess mods and handling pretty URLs. I have a php/bootstrap/mysql/javascript page: http://localhost/modules/posts/questions_all.php. I would like to redirect pages like http://localhost/modules/posts/questions_all.php/1234 to the…
hder
  • 67
  • 3
  • 11
0
votes
0 answers

yii2 UrlManager error with last element in url

How can I set up urlManager rules like that? /category/category1/element/ /category2/element/ Yii perceives the last element as a category. I need exactly this scheme url. If you do not put the last slash, then everything is OK, but it is…
Mary
  • 37
  • 9