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
1
vote
3 answers

Need php template help and clean url help

I'm new to PHP and web development in general, but have been a programmer for 5 years. I'm trying to work on my own website from scratch using Notepad to edit my PHP files and WAMP for my server. I'm able to view my files fine in Safari, Chrome…
XstreamINsanity
  • 4,176
  • 10
  • 46
  • 59
1
vote
0 answers

lighttpd and fastcgi.map-extension detection / content negotiation on rewritten "clean" URLs with no file extensions?

My current website uses PHP to build and output HTML content to the browser specified by rewritten "clean" urls. url.rewrite-once = ( "^/([-a-zA-Z0-9]+)/$" => "/index.php?section=$1", "^/([-a-zA-Z0-9/]+)/([-a-zA-Z0-9/]+)$" =>…
Mash
  • 107
  • 11
1
vote
3 answers

Opencart -> Clean URLS

I am using Opencart 1.4.9.4 is there a way that I can change my urls from the query string to category/product? Example: Current: index.php?route=product/category&path=57 Wanted: domain.co.nz/animals/monkey.php I have tried google but I have been…
Jess McKenzie
  • 8,345
  • 27
  • 100
  • 170
1
vote
1 answer

rails3, clean url, friendly_id, sessions

I'm using friendly_id it works wonderful I add a new private action to my events controller to make sure only events owner can update their events...my show and delete action works fine but when I do an update I get an…
1
vote
2 answers

clean url and javascript load order problem in php

I am trying to build a php webpage.packing.php contains :
Gaurav Shah
  • 5,223
  • 7
  • 43
  • 71
1
vote
1 answer

htaccess rewrite rule for a pretty URL

I need to turn a query string like this: http://localhost/view.php?id=12345 Into this: http://localhost/12345 But, I also plan on having a string on the end of the URL for search engines to benifit from, like…
Josh
  • 1,361
  • 5
  • 22
  • 33
1
vote
1 answer

Redirect URL with query string to new "pretty" URL to avoid duplicate content

What the best .htaccess rewrite code to force URL like this one https://www.example.com/index.php?page=report/tinytoes_mothercare to that? https://www.example.com/report/tinytoes_mothercare My web site already resolve…
1
vote
1 answer

Why does my clean url not work inside another folder?

I am trying to get clean URL's for SEO purpose. I have never done this before and I got It working for the simple file's inside my page folder. However I have a other folder inside my page folder called folder b My messy URL(inside page folder):…
J_P
  • 189
  • 1
  • 2
  • 12
1
vote
3 answers

jquery - build pretty url from parameters

jQuery has a param() function, I'm looking for similar functionality. I need to return a url in my object. For example: url: function() { return this.baseUrl + '?' + $.param({page: this.page, perPage: this.perPage}); }, this will return a url in…
Matthew
  • 15,282
  • 27
  • 88
  • 123
1
vote
2 answers

Mod Rewrite - Clean URL with query string not working

I have the following .htaccess file. Options +FollowSymlinks RewriteEngine On DirectoryIndex api.php FallbackResource index.php RewriteCond %{REQUEST_URI} ^/api RewriteCond %{REQUEST_FILENAME} !-d …
Vahe
  • 1,699
  • 3
  • 25
  • 76
1
vote
1 answer

.htaccess mod_rewrite rule to match the clean URL as well as additional custom parameters

This is a .htaccess file I found for my REST API that rewrites URLs in this manner: rest.php/a/b/c/... -> rest.php?url=a/b/c/... RewriteEngine On RewriteRule ^(.*)$ rest.php?url=$1 [L,NC,NE] I've been trying to modify this code to allow for…
420skun
  • 99
  • 4
1
vote
1 answer

Writing clean URLS with 2 parameters that point to index.php

Here is my url: website.com/index.php?folder=cars&type=ford and would like it to be website.com/cars/ford and all pages point to index.php that I will grab the params from the url. I can't seem to get it, here is my .htaccess: RewriteEngine…
bstras21
  • 981
  • 3
  • 11
  • 32
1
vote
2 answers

Clean URLs in a subfolder

I've read and followed guides and looked for answers to other people's questions, but I'm struggling with url rewriting and htaccess. I have a subfolder on my site with an index page which handles query strings to bring up dynamic content. I'd like…
1
vote
2 answers

How to use a controller for generate URLs SEO all links

I have a table with which I want to make a catalog. My table is like this: Id Product Description Price I'm going to make an index where I list all the products with their name and they link me with a link to a view where I have their description,…
laur
  • 500
  • 1
  • 9
  • 23
1
vote
1 answer

Clean URL with multiple parameters

I am using .htaccess file to achieve clean urls ,But issue is , I am unable to get 2nd parameter. RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule…
Nirali Joshi
  • 1,968
  • 6
  • 30
  • 50