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

Clean URLs when directories and files share the same name

I am using this snippet for enabling clean URLs, effectively removing the PHP extension. Options +FollowSymLinks -MultiViews # Turn mod_rewrite on RewriteEngine On RewriteBase / ## hide .php extension snippet # To externally redirect /dir/foo.php…
fluxus
  • 559
  • 5
  • 15
  • 29
1
vote
0 answers

Cloaking parts of URL when force HTTPS in htaccess

This question is about: Forcing HTTPS Keep/make the URL tidy Catch all calls to be directed to a routing file Before I had SSL on my site, I had a RewriteRule like: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond…
1
vote
0 answers

get clean URL from UI routing and achieve share functionality

i need a clean URL for my angular JS project. And i am using ui-Routing(nested routing). app.config(function($routeProvider,$stateProvider,$urlRouterProvider) { //State routing $urlRouterProvider.otherwise('/home'); $stateProvider.state('home', {…
1
vote
1 answer

Htaccess to clearn url without should the file base

I have the below line in my htaccess file to clean url and is working very fine but i want to redirect to a page without showing the base file name. What the code does http://example.com/index/e/dog What am trying to do is to hide the index.php and…
Peter
  • 1,860
  • 2
  • 18
  • 47
1
vote
1 answer

Django: Convert form data into 'clean url'

Let's say I have the following form:
1
vote
1 answer

PHP - Creating pretty urls and then coding them back agian

I want to be able to write pretty urls from example 1 to example 2 and back to example 1 agian. But I really don't know how to though and was wondering how I do this using PHP or do I need to use mod_rewrite in some way? Can someone explain this to…
HELP
  • 14,237
  • 22
  • 66
  • 100
1
vote
2 answers

Yii2 does not create nice url - parameter

I use the URL manager in Yii2 to create nice urls, which works, as long as there are no parameters on the url. I set up the following config: urlManager' => [ 'enablePrettyUrl' => true, 'showScriptName' => false, …
The Bndr
  • 13,204
  • 16
  • 68
  • 107
1
vote
1 answer

.htaccess not converting the dirty url into clean url

I am having an URL named www.example.com/print?id=adder I want it to look like www.example.com/print/adder I am using the following .htacces code RewriteEngine on # redirect all requests except only POST RewriteCond %{REQUEST_METHOD}…
Akshay Shrivastav
  • 1,115
  • 4
  • 17
  • 43
1
vote
1 answer

.htaccess - Remove a word from url

I have a project directory structure as below | project --| controllers --| views --| index.php --| .htaccess --| config --| .htaccess Here's my main .htaccess RewriteEngine On RewriteRule ^(.*)?$ views…
Ijas Ahamed N
  • 5,632
  • 5
  • 31
  • 53
1
vote
4 answers

GWT, AppEngine and pretty url (human url)

Can anybody show a working example of how to get pretty urls on a GWT project over AppEngine. I know that you will suggest to look at UrlRewriteFilter. I have been burning it for 3 days and get no succedd. Please, could help?
amanas
  • 490
  • 5
  • 8
1
vote
1 answer

How to properly use clean URLs

I really want to learn how to use clean URLs but I'm unsure how it all works. I have read a couple tutorials and watched some YouTube videos but they seemed very different from each other. Is there a right/wrong way to do it? Thanks.
Ohnegott
  • 313
  • 2
  • 4
  • 10
1
vote
1 answer

.htaccess redirect & beautify query string

Here's what I'm trying to achieve: The browser request: example.com/webApp/controller/action/?param1=param1value Where the static (always the same) part of the URL is webApp/ Where the dynamic part of the URL is…
Janne252
  • 11
  • 2
1
vote
2 answers

How to hide index?q= in php?

I am developing my application on core php and with that I am working on an application in which the index.php file loads all the template files according to the query. e.g; if user want to go to profile page, the url is,…
vibhav yadav
  • 53
  • 1
  • 11
1
vote
1 answer

Htaccess: redirect folder to page.php (clean URL)

I've been reading a lot of similar posts about this but I cannot get it to work. What I want: domain.com/birthday/page1.php to be accessible by just using domain.com/birthday Do I place the .htaccess in the website root or in the…
JDRay
  • 11
  • 1
1
vote
1 answer

ajax file not loading because of trailing slash

I have an ajax file that is called when someone begins to type in search bar. I have recently been cleaning up my urls and removing file extentions adding trailing slashes, since then my ajax file doesnt appear to load anymore. can anyone help? here…
AJFMEDIA
  • 2,093
  • 6
  • 29
  • 52