Questions tagged [friendly-url]

A friendly URL is a website address that does not contain a query string or complex strings in the URI, instead relying on a human-readable, SEO-friendly resource path after the website authority (e.g. https://www.stackoverflow.com/questions/tagged/friendly-url).

A friendly URL is a website address that does not contain a query string, instead relying on a human-readable, SEO-friendly resource path after the website authority (e.g. https://www.stackoverflow.com/questions/tagged/friendly-url).

Most of the time it is achieved with the help of a Rewrite Engine, such as mod_rewrite for Apache or mod_rewrite for Lighttpd. Many content management frameworks have the ability to generate friendly URL's built in.

1221 questions
-1
votes
1 answer

Rewrite my URL to remove strings using htaccess

I need help with my htaccess file. I added the following to remove all .php extensions which is working fine. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] However I have a directory /users which I want…
devupp
  • 11
  • 6
-1
votes
1 answer

Rewriting the Friendly urls without php extension

I'm using Wordpress to build this website but suddenly ran across some issues with SEO. Currently I have link like : cart/?bino=cart&gid=3 But what i want to achieve is: cart/service/x-service/ I know this is possible if i would have cart.php?bino…
codddeerz
  • 73
  • 8
-1
votes
3 answers

how to create a Codeigniter route

I have a CodeIgniter website and the link structure for the inner pages look like below: http://www.example.com/pages/Campus-Tour/18/3 pages is my controller name and campus-tour, 18 and 3 are the values passed into the index method. I want to make…
Abhi
  • 11
  • 1
-1
votes
2 answers

Simple form error: Mysql::Error: Column 'cached_slug'

I get this error when I submit my kategori form: ActiveRecord::StatementInvalid in KategorisController#create Mysql::Error: Column 'cached_slug' cannot be null: INSERT INTO kategoris Here is my form: <%= simple_form_for(@kategori) do |f| %> <%=…
Rails beginner
  • 14,321
  • 35
  • 137
  • 257
-1
votes
1 answer

Htaccess is not working for url php

I am trying to make pretty url in PHP. URL is working but CSS and JS is not working. File path is: example.com/store.php?brand=brand_name Desired url : http://example.com/store/brand-name Code: RewriteEngine On RewriteRule ^store/(.*)/?$…
geekhere
  • 99
  • 1
  • 2
  • 12
-1
votes
1 answer

Prestashop 1.7.X friendly url whithout category name

I would like to have the URL: demo.com/product-name Where we have (the standard): demo.com/en/home/18-product-name We will remove Category (as we have same product in many categories) and ID from URL. We modified the route:…
-1
votes
2 answers

.htaccess friendly url. What am i doing wrong

I have the following link which is working: jobdetails.php?url=Human-Resoure-Manager-3-5 I want to convert it to a friend link below but i don't know what wrong with my htaccess: /jobdetails/Human-Resoure-Manager-3-5 Options…
Elias
  • 47
  • 7
-1
votes
1 answer

What is the best practice to handle friendly urls in Laravel?

We have an online-shop. We can have any friendly urls as for separate models like products or categories (/iphone-6-white = /iphones/23) as for custom filter urls like (/cool-flashes = /flash?cap=32gb&col=white) What is the best practice to handle…
Kamil Davudov
  • 363
  • 1
  • 3
  • 15
-1
votes
1 answer

Redirect all URLs to no-www https

I would like to forward all requests to a domain via .htaccess. Everything to: https://domain.tdl No-www https I have tried many spelling, but it has not worked for completely.
baumpaul
  • 1
  • 1
-1
votes
1 answer

remove prepositions url or not?

I have a website with urls are like: barack-obama-at-a-restaurant-in-ny I noticed some websites write URLs like this: barack-obama-restaurant-ny removing prepositions and link words. Is it better for SEO?
RGS
  • 4,062
  • 4
  • 31
  • 67
-1
votes
1 answer

Prestashop Friendly URL rules

How could I write the rules to convert those links to the friendly ones after the , the produced friendly URL below show broken links This URL http://www.elektrojo.com/index.php?id_post=2&fc=module&module=nextblog&controller=nbpost To this friendly…
Karam Abo Ghalieh
  • 428
  • 1
  • 5
  • 19
-1
votes
2 answers

Hiding some GET parameters from URL

I am redirecting page using PHP header location: Current URL in browser https://mywebsite/open/firstpage/php/start.php?&cnt=us&language=en&url=http://secureURL.com but want to show…
Mangesh Sathe
  • 1,987
  • 4
  • 21
  • 40
-1
votes
1 answer

Need help adding https and www to a redirect in htaccess file

I have a set of code that redirects from a file called package.php to a "pretty permalinks" structure. The problem is that it doesn't redirect to the https version of the page. I need to be able to redirect to…
Daniel Harris
  • 1,805
  • 10
  • 45
  • 63
-1
votes
1 answer

htaccess ReWrite with php Get-Strings

I coded an online statistics page for my (minecraft) server, but I am having problems while trying to rewrite the url's to make it easier I want to rewrite: domain.com/players/player.php?p=QUERY to: domain.com/player/QUERY I searched many pages,…
-1
votes
1 answer

.htaccess URL rewrite with one query string vars

I'm trying URL re-writing for the first time and I have the following URLS which need rewriting: http://domain.com/hotels/index.php?ct=new delhi I want this as http://domain.com/hotels/hotels-in-new delhi