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

Using MOD_REWRITE for URL variables and removing empty parameters when not used

I am trying to create a mod_rewrite that when a user enters, or it shows in the URL: www.example.com/var1/var2/var3/var4/ it outputs the same as www.example.com?page=var1&cat=var2&subcat=var3&subsubcat=var4 but if there is a change in the number…
R A
  • 119
  • 1
  • 12
3
votes
3 answers

extensionless url in IIS7.5

I have a website, which is been working on Dotnetnuke. I am using dotnetnuke's friendly url to use clean url's instead of asp's ugly QueryString urls, now my problem is, what configuration does it need for the extensionless urls in dotnetnuke using…
Abbas
  • 4,948
  • 31
  • 95
  • 161
3
votes
3 answers

How can I make all my urls extensionless, without trailing slash. And redirect the .php and trailing slash to none?

I want to make all my URLs uniformly clean. Which means all my URLs have no extensions, nor trailing slash, and if a person does enter in a .php or trailing slash, it would simply redirect the person to the clean…
user657847
  • 153
  • 1
  • 3
  • 8
3
votes
0 answers

Clean Ransack search URL

How do I get a clean URL after searching through a Ransack form? Current…
A.A. F
  • 349
  • 5
  • 16
3
votes
2 answers

Can clean URLs be achieved in a pure ColdFusion solution?

We need to estimate a portal based on ColdFusion technology. We have no information about the hosting environment (could be Windows or Linux). One of the requested features is clean URLs. Does anyone know if this can be achieved with a pure…
Koen
  • 3,626
  • 1
  • 34
  • 55
3
votes
2 answers

Getting query string parameters from clean/SEO friendly URLs with JavaScript

I've recently switched my site to use clean/SEO-friendly URLs which has now caused me some issues with a JavaScript function I had for grabbing the query string parameters. Previously I had been using this function: function…
MrLewk
  • 498
  • 1
  • 6
  • 24
3
votes
3 answers

Redirecting /index.php?country=a to /a/ by htaccess

To redirect www.example.com/index.php?country=a to www.example.com/a/ tried: RewriteCond %{QUERY_STRING} index.php?country=a [OR] RewriteCond %{REQUEST_URI} index.php?country=a RewriteRule ^ http://www.example.com/a/? [L,R=301] Not works.…
user6098620
3
votes
1 answer

Clean url-s in Struts2

Hi i am beginner to struts2. If i post an URL like https://stackoverflow.com/questions/25658104 I want to get value 25658104 It must be done without any parameter. not as https://stackoverflow.com/questions?qid=25658104 Is there any way to get…
theRoot
  • 571
  • 10
  • 33
3
votes
1 answer

Apache rewrite URL but don't rewrite certain folder

I am using Apache to rewrite my URLs into clean URLs. RewriteRule ^(.*) index.php Currently this rewrites directories too, which is what I want, since I want everything run through my router/index.php file. What I would like to do however, is have…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
3
votes
4 answers

Enabling clean URLs (Drupal 7)

I just installed and started using Drupal 7, and I followed the instructions to turn on Clean Urls. I clicked "Run the Clean URL test" button, but it failed to return any results. It loads up something and then refreshes the page. There is no option…
Rohi
  • 77
  • 1
  • 1
  • 6
3
votes
1 answer

clean URL test failed D7

I have spent about four hours trying to get clean URLs to work and it is really doing my head in. I am very new to Drupal and after hearing all the wonderful things about it, this is disappointing. Here is my setup: I have XAMPP on windows 7, and…
Undefined Variable
  • 4,196
  • 10
  • 40
  • 69
3
votes
2 answers

Executing a Yii module without a route

I have a module that is named article. It exists in the collowing folder: - protected - modules - article - controllers ArticleController.php - views …
Minahalmon
  • 131
  • 2
  • 11
3
votes
2 answers

How to structure Laravel .htaccess in order to point straight to public folder & remove index.php

I am attempting to create htaccess files that can be used on development and production server. The development server's folder structure is like this: Server Root (www) -laravel -public -index.php -controller/method... etc The production…
3
votes
1 answer

.htaccess refuses to redirect URLs without file extensions - straight to 404

So I've been tinkering. Apache's .htaccess was redirecting my WWW client just fine (if there is no WWW present, 301 to the same URL with a WWW included), and it was redirecting things with file extensions (i.e. index.html will redirect to…
Cora
  • 269
  • 3
  • 17
3
votes
2 answers

Handling Two Query Strings with .htaccess

I'm trying to rewrite urls for a page that has two query strings parameter. And according to these parameters value (set or not), I show different contents on the page. example.com/fotograf.php?aid=10 example.com/fotograf.php?aid=10&fid=5 The URLs…
1 2
3
26 27