Questions tagged [clean-urls]

Semantic URLs (aka Clean URLs) are purely structural URLs that do not contain a query string and instead contain only the path of the resource.

Semantic URLs (aka Clean URLs) are purely structural URLs that do not contain a query string and instead contain only the path of the resource.

Related tag's:

391 questions
3
votes
4 answers

Remove .php extension with PHP

I could use some help here. I'm using this to fix my URL but I can't figure out how to remove the .php extension. The URL looks like this now: http://mydomain.com/page.php/foo/123/bar/456 function decode_URL_parameters() { $path =…
Tobias
  • 35
  • 1
  • 2
  • 4
3
votes
1 answer

Router Configuration CakePHP Remove Pages in URL

I'm currently looking for a solution to remove "Pages" from the URL but not make it hard to add a controller. I looked around and searched on Google for a solution, but the best solution they could give was this: Router::Connect('/*',…
Ian van Wijk
  • 159
  • 2
  • 8
2
votes
2 answers

URL rewrite with PHP & MySQL and htaccess

I have my site as localhost/tutorials/rewrite/news.php on this page are titles from news articles that are in my database. Each title is a link to read the article. The link is '' . $title1. '' The…
Pierce McGeough
  • 3,016
  • 8
  • 43
  • 65
2
votes
2 answers

Clean URLs in PHP without mod_rewrite

I am developing a backend for a site I built for a client in PHP (which I rarely use), which is almost completed. I'm a Rails developer primarily, so I'm having a hard time not going for some bastardized version of a CRUD setup, and I am attempting…
goddamnyouryan
  • 6,854
  • 15
  • 56
  • 105
2
votes
2 answers

pretty urls instead of id in php/codeigniter

I am developing a PHP site using codeigniter, and would like some help in how to go about achieving clean urls instead of numeric ids. For example, instead of www.site.com/category/view/1 , i want something like …
2
votes
3 answers

auto redirect to clean urls

how can i auto redirect a site from dirty url to clean url in php , something like http://www.mysite.com?page=page1&action=action1 to http://www.mysite.com/page1/action1
Dipesh KC
  • 3,195
  • 3
  • 32
  • 50
2
votes
0 answers

Clean URLs with Next.js using graphql-yoga

I would very much appreciate some help with implementing server side support for clean urls for next.js. I'm using graphql-yoga (and prisma) on backend and next.js with apollo client on frontend. My graphql-yoga server is running on the port…
brb
  • 21
  • 2
2
votes
1 answer

Codeigniter Query Strings URL Issue

I have already setup project having it's url like below. index.php?c=controllerName&m=methodName And parameter in above url like below. index.php?c=controllerName&m=methodName&selDeg=manager I want to use url like below for my newely created…
Yogendrasinh
  • 895
  • 1
  • 8
  • 23
2
votes
2 answers

Removing utm_* parameters from URL in javascript with a regex

I did not find any good answer to this question so I share what I found and works if you want to remove all the google analytics terms from an URL, you mostly want to keep the other parameters and get a clean valid URL at the end url =…
benraay
  • 783
  • 8
  • 14
2
votes
4 answers

Rails link_to with acts_as_taggable_on_steroids

I am using acts_as_taggable_on steroids and I am having problem with this piece of code that generates a link to a tag: <%= link_to tag, tag_path(:id => tag.name) %> when I access the URL: http://localhost:3000/tags/rails I get the error: No…
yretuta
  • 7,963
  • 17
  • 80
  • 151
2
votes
3 answers

jquery getElementById on a ajax data

I got a function in javascript that first checks if the username is the required length and than sends the username to a page for a test if the test is a success there will be a true else
Ken
  • 2,654
  • 3
  • 26
  • 29
2
votes
1 answer

Clean url in php with two get parameters

I am working on a PHP script that uses clean URIs. My problem is, that I have one page that first uses no get parameter, then one and at the end two. The line in the .htaccess file currently looks like this: RewriteRule ^birthing-records/([^/]+)/?$…
Dennis
  • 595
  • 1
  • 6
  • 22
2
votes
1 answer

Yii2 Bootstrap navbar's label URL without clean URL

I still under development and I don't want to use clean URLs in my Yii2 right now. I added the following code to the advanced Yii2 project navbar About to make submenu under About: [ 'label' => 'About', 'url' => ['/site/about'], 'items'…
SaidbakR
  • 13,303
  • 20
  • 101
  • 195
2
votes
1 answer

Change URL .php extension using .htaccess

I would like to know if its possible change the extension .php to "/". Example: http://localhost/website/example.php?id=19 convert into, http://localhost/website/example/?id=19 Or if you guys have a better idea for the address i would like to know…
Bruno
  • 99
  • 1
  • 10
2
votes
2 answers

Drupal 7 how to write a clean url link in Panels, or Content Node

I have enabled clean URLS and it is working fine. How ever I have a Panel page with link. the link goes somethinglike this. Now, Lets say I am on that Panel page(i would think the same thing would happen on any other custom…