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

How to remove id and title from this url?

I need to remove ?id= and &title= from this url using .htaccess file. URL now - http://www.XXXX.com/video.php?id=XX&title=XXX-XXX-XXX What I need - http://www.XXXX.com/video.php/XX/XXX-XXX-XXX I already have removed .php from all links.
Nilohn
  • 133
  • 2
  • 11
6
votes
2 answers

How can I use Weblogic (12 C) without the application context in the URL?

I am working on a web project that requires Weblogic server and the only way I can view the site after deploying (on my Macbook Pro) is by specifying the application name as a prefix to the entire site.…
Sirius_B
  • 276
  • 1
  • 2
  • 13
5
votes
8 answers

How does one encode and decode a string with Python for use in a URL?

I have a string like this: String A: [ 12234_1_Hello'World_34433_22acb_4554344_accCC44 ] I would like to encrypt String A to be used in a clean URL. something like this: String B: [ cYdfkeYss4543423sdfHsaaZ ] Is there a encode API in python,…
Val Neekman
  • 17,692
  • 14
  • 63
  • 66
5
votes
4 answers

how to remove url (/web/index.php) yii 2 and set route with parameter with clean url?

first question: i already remove index.php, but i want remove /web also. this is my .htaccess RewriteEngine on # If a directory or a file exists, use it directly RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d # Otherwise…
randawahyup
  • 389
  • 2
  • 5
  • 15
5
votes
2 answers

single-page application with clean URLs without .htaccess file?

My question pertains specifically to the two pages below, but is also more generally relating to methods for using clean URLs without an .htaccess file. http://www.decitectural.com/ and http://www.decitectural.com/about/ The pages above are hosted…
adekom
  • 216
  • 2
  • 10
4
votes
3 answers

Password Protect Virtual Directory With .htaccess

I have a site with a virtual directory structure like mysite.com/folder/title which is actually a .htaccess rewrite to mysite.com/f/index.php?p=title. I want to password protect the folder folder with .htaccess, and know how to do that with actual…
jkeesh
  • 3,289
  • 3
  • 29
  • 42
4
votes
3 answers

Yii2 Clean URLs & Action Parameters

I've enabled clean URLs on my Yii2 application, but I can't seem to get arguments to pass to the action. I expect this: localhost/app/web/a/b/c/d To map to the following: AController->actionB($c, $d) It's not happening. Here's my…
Tal V.
  • 671
  • 1
  • 6
  • 15
4
votes
3 answers

Some basic questions about Django, Pyjamas and Clean URLs

I am farily new to the topic, but I am trying to combine both Django and Pyjamas. What would be the smart way to combine the two? I am not asking about communication, but rather about the logical part. Should I just put all the Pyjamas generated JS…
mdrozdziel
  • 5,528
  • 6
  • 39
  • 55
4
votes
5 answers

htaccess - One clean URL working but not the other

htaccess files have never been a strong point for me unfortunately. I'll just jump right in: #Turn RewriteEngine on Options +FollowSymLinks RewriteEngine on #Canonicalize URL RewriteCond %{HTTP_HOST} !^www\.domain-removed\.com [NC] …
no.
  • 2,356
  • 3
  • 27
  • 42
4
votes
2 answers

A more efficient string cleaning Regex in PHP

Okay, I was hoping someone could help me with a little regex-fu. I am trying to clean up a string. Basically, I am: Replacing all characters except A-Za-z0-9 with a replacement. Replacing consecutive duplicates of the replacement with a single…
Samantha P
  • 543
  • 4
  • 12
3
votes
4 answers

can't call the second function in controller codeigniter

I'm new in codeigniter I have problem I use my OS X Lion, and I use .htaccess I can call directly localhost/site_folder/ it works like charm, but I have second function in my controller but I can't directly call that function like this…
ranggadablues
  • 249
  • 1
  • 4
  • 14
3
votes
1 answer

How to hide file extension in nginx

Coming from an Apache background, in the past I have hidden .html file extensions using a pair of rewrite rules: RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /.+\.html\ HTTP RewriteRule ^(.+)\.html$ http://%{HTTP_HOST}/$1 [R=301,L] RewriteCond…
jvc26
  • 6,363
  • 6
  • 46
  • 75
3
votes
1 answer

Writing clean URLS with 1 parameter that point to page.php

I would like when visitors type http://localhost/mywebsite/paris/ it calls http://localhost/mywebsite/page.php?city=paris But when typed http://localhost/mywebsite/ it calls to http://localhost/mywebsite/index.php RewriteEngine On RewriteRule…
3
votes
1 answer

Next.js - How to show post name in the url instead of the id and make it unique?

I searched for this but I could only find examples in Laravel and PHP, and I need to know how to do this with Next.js. All I know is that I can do dynamic routes in Next.js the usual way like this ... /pages/post/[postId] which will translate to…
Ruby
  • 2,207
  • 12
  • 42
  • 71
3
votes
1 answer

MOD_REWRITE for URL variables, removing empty parameters and using more than 1field for the first and second variables

I have a previous question that was answered very well but requires an amendment and I was unable to reply so have created a new question. I required a mod_rewrite that made the…
R A
  • 119
  • 1
  • 12
1
2
3
26 27