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

Removing .php from urls with lighttpd (clean urls)

I am migrating an over loaded server from apache2 to lighttpd, currently I am proxying all the static resources from the lighttpd server but that still doesn't fix the load problems. I want to migrate everything to lighttpd but I've run into a…
user842571
0
votes
1 answer

CakePHP URLs load view in a separate window

I'm having a problem with my URLs in CakePHP. I have a controller named 'users' that has an index and a highscores action(action, method, function, whatever). When I go to mydomain.com/users, I get the index view loaded in my layout. Perfect. But,…
Jason
  • 1
0
votes
4 answers

How to GET to a clean url using php

If I have a GET search field, how could I have that submit to a clean url (e.g. /search/keyword instead of index.php?fn=search&term=keyword)? I don't want to use Javascript to overwrite the submit event of the form if at all possible. Thanks.
penguinrob
  • 1,431
  • 3
  • 17
  • 39
0
votes
1 answer

Rewrite Rule to make clean home page url

i need to rewrite my homepage. in navigation bar i want to see http://domain.com/ which is created from real page http://domain.com/abc Thank you.
mesnicka
  • 2,458
  • 8
  • 23
  • 31
0
votes
3 answers

.htaccess - Cache files from URL like /files/large/6

We have a multisite CMS that handles images and other files like this.. How can we cache images and other files that are in www.(or non-www.)variable-domain.com/files/* with .htaccess? This is causing a 500 error. I stripped out some.. here is what…
Ryan Thompson
  • 458
  • 5
  • 15
0
votes
1 answer

Clean urls .htaccess file doesn't work

The query string of my webpage looks like this and this shows in the urls now. board_list.php?ptype=list&code=Breaking_News&idx=5752&page=1 It is really messy, so I've been looking for ways to make them look simpler. So I ended up with creating…
Visualizer7
  • 325
  • 1
  • 5
  • 13
0
votes
2 answers

PHP question mark on Clean URLs

i am currently trying to learn about clean urls. i was using windows once. i switched to ubuntu when suddenly my .htaccess seems to be not working here is my htaccess RewriteEngine On RewriteBase / RewriteCond…
kapitanluffy
  • 1,269
  • 7
  • 26
  • 54
0
votes
1 answer

can i type a clean url in drupal and be converted instead into a url with a query string?

i'm creating a drupal site that should include a feature that will turn a clean url into a a url with a query string. The way it should work would be: user would type any clean url like www.example.com/hobbies/skiing in the url bar. here is my…
bonbon.langes
  • 1,718
  • 2
  • 22
  • 37
0
votes
1 answer

CloudFront Cache Behaviors targeting `*.html` files with "Clean URL" redirects

I am trying to set up a CloudFront distribution which caches all resources except for HTML files while enforcing clean URLs through a CloudFront Function. However, it seems like my current setup is caching HTML files as well. I would like to…
0
votes
0 answers

how to create a clean url within the same page

Let's suppose i have a website (example.com/index.php) which displays a list of products. Now if i want to open and see full details about a specific product in its own page, i would normally create another directory like…
0
votes
1 answer

Apache Clean URL Code Causing An Internal Server Error

I'm setting up a 404 page on a project on my localhost (MAMP) and in my .htaccess file I’ve included the following code: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule…
paulo77
  • 174
  • 14
0
votes
1 answer

Htaccess rewrite rules?

so my url is currently: http://www.mywebsite.com/search.php?keyword=stack+overflow I'm wanting to have it accessible as: http://www.mywebsite.com/?s=stack+overflow Now I've also implemented rewrites for .php files as below RewriteEngine…
Jessica
  • 451
  • 2
  • 5
  • 15
0
votes
0 answers

Virtual Host Is Not Working For Drupal In Apache

I see the following warning when I install Drupal: I already activated a2enmod rewrite and make virtual host under /etc/apache2/site-enabled/000-default.conf Options Indexes FollowSymLinks…
0
votes
1 answer

Why do I have to add an unused variable in my mod rewrite url?

I have this code for my htaccess file: RewriteEngine On RewriteRule /([^/]+)?$ index.php?page=$1 RewriteRule /([^/]+)/([^/]+)?$ index.php?page=$1&var1=$2 RewriteRule /([^/]+)/([^/]+)/([^/]+)?$ index.php?page=$1&var1=$2&var2=$3 It works fine…
Yesterday
  • 561
  • 1
  • 15
  • 31
0
votes
0 answers

WordPress conditional rewrite rule based on date and requested url

Im trying add a rewrite rule for an old website that just undergone some renovation. so far the rewrite rule is like /%year%/%monthnum%/%day%/%post_id%.html and now just need to change that to /%postname%.html The issue is, since this is a…
TELA
  • 41
  • 1
  • 7