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

Removing .php extension from URLs using .htaccess?

Is it possible to remove the .php part from all of my URLs using a .htaccess file? Two examples: http://url.com/home.php http://url.com/shops.php Become: http://url.com/home/ http://url.com/shops/ All the help would be massively appreciated.
Rahul Khosla
  • 349
  • 9
  • 21
1
vote
1 answer

Htaccess parameter overwrite + allow additional params?

I have a rule in my .htaccess file to overwrite ugly parameter urls with clean paths. Here is an example: RewriteRule ^landing(/)?([0-9]+)?(/)?$ landing/index.php?intPage=$2 So when someone goes to /landing/3, it would load the index.php page…
Armin
  • 369
  • 2
  • 5
  • 23
1
vote
1 answer

How to setup site/domain controller for a requested dynamic page with Yii

I am working on a cms based Yii application. I have recently finished the pages of the backend and can now get the pages from a database. The trouble begins with getting the requested url and rendering the dynamic layout. What is the best way to go…
Minahalmon
  • 131
  • 2
  • 11
1
vote
0 answers

intelligencia.urlrewriter: bad request error

I want to implement url rewriting with intelligencia.urlrewriter.problem is when clean URL Contains special characters such as % : * & and more.in this case I get a bad request,because the cleaned url does not contain ? sign. I work with .net 3.5 .…
mina morsali
  • 778
  • 1
  • 16
  • 29
1
vote
1 answer

.htaccess how to force/automatic clean URL

I'm new to mod_rewrite but am trying my best to fix up my site with clean URLs. Using RewriteRule I can get it so you can type in a clean URl and get to the right page, but what I'm having trouble with is automatically redirecting to the clean URL…
MrLewk
  • 498
  • 1
  • 6
  • 24
1
vote
1 answer

Should I use mod_rewrite for my site's URLs?

My site currently handles URL's like this... /?p=home /?p=profile&userid=1 /?p=users.online /?p=users.online&page=23 /?p=mail.inbox /?p=mail.inbox&page=12 ... and so on, there is probably at least 120-150 different pages, on my site a…
JasonDavis
  • 48,204
  • 100
  • 318
  • 537
1
vote
1 answer

clean urls issue using .htaccess in php laravel project

I am working on a php laravel project. I am currently facing issues with .htaccess file. I have following .htaccess Options -MultiViews RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^…
Om3ga
  • 30,465
  • 43
  • 141
  • 221
1
vote
1 answer

htaccess clean-urls $_GET empty

I have the following…
0x_Anakin
  • 3,229
  • 5
  • 47
  • 86
1
vote
3 answers

using seo user friendly in php

this is the URL path I currently use: /index.php?page=1&title=articles I want to get the URL path as /index/page-1/title-articles using SEO user friendly URLs in PHP. And how to get the value of the "title"? Any one can help me pls.
Padma
  • 21
  • 3
1
vote
2 answers

.htaccess to enable loading of js and css files

i was enabling clean urls by editing .htacces with the following code RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([a-zA-Z0-9]+)/(.+)/$ index.php?page=$1&option=$2 [L] RewriteRule…
1
vote
1 answer

.htaccess rewrite for date i.e. /2012/12/31

I am trying to create some rewrite rules to organize content by date via URL in a short, readable…
1
vote
1 answer

Clean Url does not work

My program is a web project in asp.net 2008 and I use urlrewriting Module to cleaning my URLs. For this,I only add some configuration settings in web.config and define some rules in web.config.then in my .aspx file I use clean Urls. My program has…
mina morsali
  • 778
  • 1
  • 16
  • 29
1
vote
2 answers

htaccess rewrite index.php on root and subfolders

I'm trying to redirect all requests to ./index.php?site=$1 while I only want to use the part behind the last slash. So I want www.mydomain.com/firstpage to become www.mydomain.com/index.php?site=firstpage and www.mydomain.com/subfolder/anotherpage…
basbebe
  • 567
  • 1
  • 9
  • 25
1
vote
2 answers

clean url in php

Possible Duplicate: How to: URL re-writing in PHP? I want to pass a clean url through search form in index.php(mvc) ie:
1
vote
1 answer

nginx wordpress clean urls work in only some sub-sites

I currently use this setup (with a different root path) for another site on my nginx machine, for that site, this works correctly with clean urls. location ^~ /learn { root /var/www/blogs/mysite/learn; index index.php…
Kristian
  • 21,204
  • 19
  • 101
  • 176