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
2
votes
1 answer

htaccess two variables two landing pages

i have already implemented and working the following: http://domain.com/collections/ford from the following url: http://domain.com/collections.php?brand=ford using the RewriteRule ^collections/$1/(.*)$ collections.php?company=$1 [L] This works…
TharsDimitris
  • 154
  • 10
2
votes
1 answer

php .htaccess clean url

xxx.com.com/front << work retuern Array ( [mod] => home ) xxx.com/news-my-seo-title << work return Array ( [mod] => cat [act] => more [seo] => hiburan-2 ) xxx.com/cat-mycategory-1 << not work return Array ( [mod] => cat [act] => more [seo] =>…
cangak
  • 136
  • 10
2
votes
3 answers

Drupal clean urls on custom page GET request

I have a drupal page (content type page) that should accept GET values using clean urls. I put the following code in the page body using the php code input format. name; ?> Now…
draenen
  • 537
  • 4
  • 11
2
votes
1 answer

How to refactor my .htaccess to get a get semantic urls for ALL my pages

.htaccess files really aren't my thing. They still remain a mystery to me and probably will always be... Anyway, so I have an .htaccess file with quite some rewrite rules for all different pages. URL: http://placeholder.com/OC/hoig/[page] Folder…
Vince C
  • 868
  • 6
  • 16
2
votes
3 answers

Pass a clean parameter through URL

I'm using localhost, and in my index.php page I have this code: When I type localhost on the URL it only shows LANG IS, obviously, but if I type localhost/en I see a 404 Not Found message. I have to type…
forvas
  • 9,801
  • 7
  • 62
  • 158
2
votes
1 answer

Clean URLs messing up relative links

I have set up clean URLs and for those most part they work fabulously. However some of the relative paths for css, images, etc. are getting messed up, using the fake clean-URL root. To start, here's my .htaccess file: RewriteEngine On RewriteCond…
wowohweewah
  • 429
  • 5
  • 16
2
votes
2 answers

remove file extension google app engine

I uploaded my client's webpage using google app engine and it is working fine. It is a very simple webpage with 12 static files (.html all of them) I have to remove the file, but I don't know if this can be done modifying the app.yaml or the…
esdrayker
  • 115
  • 1
  • 9
2
votes
2 answers

Why do all my webpages have .html at the end and none of the professional webpages have this?

Why do all my webpages have .html at the end and none of the professional webpages have this?
Lexus de Vinco
  • 447
  • 2
  • 7
  • 20
2
votes
1 answer

.htaccess - Clean URL, 500 Internal Server Error

I've got this as my .htaccess: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.html -f RewriteRule…
Isaiah
  • 1,852
  • 4
  • 23
  • 48
2
votes
2 answers

htaccess strange behaviour on white space removal

Hello In my project I have the following htaccess. Everything works ok for example I enter the following url domain.com/ test some test / test / which becomes domain.com/test+some+test/test as expected The strange thing for me at least…
0x_Anakin
  • 3,229
  • 5
  • 47
  • 86
2
votes
1 answer

public folder on codeigniter and clean URL

with the idea of ​​protecting / limit access to folders codeigniter, I created a public folder. The main idea is that users can only access the public folder      DocumentRoot "www / codeigniter / public"     
2
votes
1 answer

Django Clean URLS and Form Data

I must have some sort of misconception of how GET variables can be manipulated in django, but here goes: (1) I have a search form that has two required parameters, and one optional parameters. The form sends to /search/ like so :
geogaddi
  • 565
  • 1
  • 8
  • 18
2
votes
0 answers

PHP clean url template with ajax

I'm having some issues how to build a website template with clean url's. I have the following files and directories in my root: .htaccess (redirects every call to a non-existing file or directory to index.php) index.php /includes which contains…
randomizer
  • 1,619
  • 3
  • 15
  • 31
2
votes
1 answer

301 Redirecting Dirty URLs to Clean Ones

I really need some help redirecting dirty URLs to clean ones. Dirty URL: creature.php?beast= Clean URL: /mythical-creature/ Currently my .htaccess looks like this: RewriteEngine On RewriteCond %{HTTP_HOST} ^mythicalcreatureslist.com…
Egan7
  • 55
  • 2
  • 10
2
votes
2 answers

Remove %2F from URLs with mod_rewrite

I would like to remove the '%252F' from my dynamically created URLs. I have a php-file that creates links with a %2F instead of /. The links are then represented in the URL-Bar as %252F instead of / which leads to some problems. What I'm trying to…
basbebe
  • 567
  • 1
  • 9
  • 25