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
2 answers

Drupal Clean Urls break randomly for arbitrary paths

I've done everything right. My server has mod_rewrite enabled, my virtualhost path has AllowOverride set to All, and I have the .htaccess file in place with the rewrite rules same as everyone. But I have trouble accessing some pages using their…
picardo
  • 24,530
  • 33
  • 104
  • 151
1
vote
1 answer

htaccess proper redirect with trailing slash

Good day! I want to make proper redirect by htaccess, when there is GET request like this: example.org/directory/page/ It should give example.org/page.php My htaccess lets only redirect this kind of request example.org/directory/page I use this…
Sabine
  • 323
  • 4
  • 14
1
vote
2 answers

Clean URL rewriting rule

right now my url looks like this: http://domain.com/en/c/product%2C-product2%2C-product3/82 where last number is category numer. And im trying to rewrite it and redirect user to url which should look this…
user3038744
  • 86
  • 1
  • 8
1
vote
5 answers

.htaccess pretty URLs are not working

I'm trying to use pretty URLs on my site, and I don't know too much about htaccess, but after some search I ended up with this: RewriteEngine On RewriteRule ^([a-z]+)\/([0-9]+)\/?$ content.php?action=$1&id=$2 [NC] I'm trying to change…
Pedram
  • 15,766
  • 10
  • 44
  • 73
1
vote
2 answers

I would like to use Rewrite rule to clear my url

I would like to clear my url by using RewriteRule at .htacces. I would like to change /product/detail.php?id=red-shirt to something like this /product/red-shirt. I tried to use this RewriteRule ^/?product/([^/d]+)/?$ /product/detail.php?id=$1…
Martin Štefek
  • 358
  • 4
  • 12
1
vote
1 answer

Make htaccess rewrite rules check for index page in that folderpath first

This is probably a real easy question. I'm just having a simple clean URL kind of setup, so www.website.com/articles/music would rewrite it to index.php?cat=articles&subcat=music or whatever, that's just an example. But of course if it's a file…
wowohweewah
  • 429
  • 5
  • 16
1
vote
1 answer

Straight Rewrite Rule for htaccess

I was looking for a simple .htaccess configuration that just convert /some_uri to /some_uri.php. Most examples in community are more complicated than I require. I was trying the following, but it didn't work: Options…
Vladimir
  • 361
  • 1
  • 3
  • 14
1
vote
2 answers

unable to make seo friendly url using htaccess

I am trying to make friendly urls, all the urls are working absolutely fine just 1 url is not working. I want http://example.com/checkout/cart to display the page from http://example.com/index.php?route=checkout/cart I tried lots of solutions…
1
vote
1 answer

Redirect and Rewrite URLs and Replace Space with Dash

I would like to rewrite/redirect the URLs on my site. Here are the things I want to accomplish: Redirect from www.olddomain.com to www.newdomain.com Rewrite URLs and create clean URLs Disregard certain parameters when creating clean URL Replace…
1
vote
2 answers

Java library/class to parse clean URLs and get its different components

I am looking for a java library/class to parse clean URL's and get all the properties like query, port, host , domain, subdomain etc. Essentially most of the functionality that java.net.URI does but even for clean URLs. I am guessing since this is a…
Ritesh M Nayak
  • 8,001
  • 14
  • 49
  • 78
1
vote
3 answers

Why would Apple.com and other sites have some pages end with .html and have clean links for others. Usability advantages?

I was wondering if anyone knew the thinking behind there decision to do this: Alot of pages on Apple.com have clean links such as: http://www.apple.com/wifi/ however some of there pages end with…
CafeHey
  • 5,699
  • 19
  • 82
  • 145
1
vote
0 answers

Laravel and index.php without Clean URLs

Ok, I'm going nuts trying to work this out. I am NOT able to use Clean URLs for my application (grumble), which I'm building with Laravel 4.1 to run on a Windows server. My login page is giving me grief. It lives at the root of my application,…
dspitzle
  • 740
  • 2
  • 9
  • 26
1
vote
1 answer

Drupal Clean URLs Enabled; still have ?q= in links

I've enabled clean URLs on my Drupal 7 website, however they don't seem to be working properly. Example: I can visit http://url.com/store without issue. However, if I click it in my site navigation, it navigates to http://url.com/?q=store (the same…
CodeMonkey13
  • 125
  • 2
  • 11
1
vote
1 answer

How do I remove index.php/html from the url

I am running into a problem concerning the mod_rewrite. RewriteCond %{THE_REQUEST} /index\.[php|html] [NC] RewriteRule (.*)index\.[php|html]$ /$1 [R=301,L] The idea is to get both domain.com/index.php and domain.com/index.html redirected to…
Fabian
  • 107
  • 2
  • 2
  • 9
1
vote
1 answer

Cleaning a url with multiple fields ?action=&user=

Sorry if this question has been asked a ton however, I couldn't find a solution based off previous questions asked on this site and google. I have this URL http://mywebsite.com/index.php?action=users&user=John to generate a profile for a user. I…