Questions tagged as 'htaccess'

1
answer

redirect with htacess

I set up my htacess to get any words I type in the URL and look for the php file. It works like this: www.mysite.com/city and it redirects to www.mysite.com/Search/City.php The code looks like this: RewriteCond %{REQUEST_FILENAME} !-f R...
asked by 05.07.2016 / 23:50
1
answer

Escape "/" with htaccess and / or php

I have a small MVC made by me. With urls Of this type index.php?route=admin/produto/adicionar , but I wanted to remove index.php?route= , I already got a line of .htaccess that was thus www.exemplo.com/admin/produto/adicion...
asked by 02.11.2015 / 18:38
1
answer

htaccess help and base url php [closed]

I'm trying to make url friendly with the baseurl class and also with htaccess, but some pages like services and portfolio, are bugged, when I click to see the code appears in the path of the files a part of the page name, as examples locahost...
asked by 11.10.2015 / 21:15
3
answers

How can I simplify URLs for a website?

To access a particular area of the site, I have to indicate one to three parameters in the URL: Normal URL: # aceder a um módulo http://www.meusite.com/index.php?mod=john # aceder a um sub-módulo: http://www.meusite.com/index.php?mod=joh...
asked by 28.12.2013 / 10:37
1
answer

Redirect - Friendly URL .HTACCESS

I created a redirect from a domain to a subfolder, see how it went: # Redirect from www to non-www location RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} ^www.meusite.com.br [NC] RewriteRule ^(.*)$ https://www.meusite.com.br/loja/$1...
asked by 15.09.2015 / 16:42
1
answer

friendly urls for various folders [closed]

I have these urls, I'm using subfolders, but htaccess will stay in the root MEDICAL PASTA When the person logs in for redirection it appears in the url? id = 1 without the index laudar.php?id=1 relatoriolaudos.php?id=1 listalaudos.php?id...
asked by 08.08.2015 / 21:14
1
answer

.htaccess does not allow entering folders

I have a website in CakePHP and its correct htaccess correctly. The problem occurs because I created an additional domain in the hosting and as usual, it creates a folder in public_html to put the files of this new domain getting f...
asked by 29.05.2015 / 20:19
0
answers

HTACCESS stops functioning correctly in the environment exchange

I have to migrate from a rookie hosting site to a dedicated server hosting, and my htaccess simply resolved to stop responding to urls thus sending url to the error page. It even mounts the url as it can be seen here by hovering over...
asked by 03.03.2015 / 21:11
3
answers

How can I simplify URLs for a website?

To access a particular area of the site, I have to indicate one to three parameters in the URL: Normal URL: # aceder a um módulo http://www.meusite.com/index.php?mod=john # aceder a um sub-módulo: http://www.meusite.com/index.php?mod=joh...
asked by 28.12.2013 / 10:37
1
answer

Multiples RewriteRules for 3rdparty and routes

I have a .htaccess file that adds PATH_INFO in the index.php file (to the routing system): RewriteEngine On RewriteCond %(REQUEST_FILENAME) !-f RewriteCond %(REQUEST_FILENAME) !-d RewriteRule ^(?!index\.php(/.*|$))([a-zA...
asked by 17.05.2015 / 04:01