Questions tagged as 'htaccess'

2
answers

Routing Codeigniter

I am making a site with administrative area using the Framework Codeigniter. In the administrative area, the user can create new pages for the site. The content of the page will be saved to the database. The controller that reads the pages of...
asked by 10.11.2014 / 17:01
2
answers

Apache directing two URLs to the same folder

I have 2 sf2 projects in different folders. When they access the URLs localhost/projeto01 and localhost/projeto02 m go to same location (project01 even when access / project02). I created a vhost after that to see if it solved...
asked by 27.02.2014 / 03:41
1
answer

.htaccess and rewriting rules on PHP server

I'm developing a php microframwork, and I'm using php's built-in server (php-127.0.0.1.18000 -t public) with root directory in public / folder. I do not know if .htaccess works or is running on this server. When accessing a non-root ("/")...
asked by 18.11.2018 / 00:50
2
answers

Disabling directory listing in WordPress

Good afternoon everyone, I would like my directory listing not to be exposed, I used the following code inside .htaccess Options -Indexes , however when I test the code renaming the index. php it returns error 403 . Is it possible to...
asked by 21.12.2017 / 17:56
2
answers

How to block directory files recursively?

I'm trying to block all files in a particular directory with the exception of .js , .jpg , .css , .gif , .png . I have this code, but it is not working the way I want it to be: <Files ~ "\.(jpg|jpeg|png|gif|css|js)$"> order de...
asked by 26.05.2017 / 21:41
1
answer

How to redirect url with query with .htaccess?

I have the following problem, I need to redirect the following url: site/nossos-socios.php?termo=teste for site/nossos-socios/?q=teste I need to have the interrogation before q =, I tried to use the escape with the interrogation, but i...
asked by 28.04.2017 / 17:05
1
answer

How to use subfolder as main folder without changing URL (site in joomla)

I have a site I'm redoing. The old one was made in wordpress (in the root of the site) and the new in joomla (in the "new" folder) I want that when accessing the domain.com is redirected to the domain.com / new, but that the user sees doma...
asked by 28.08.2017 / 17:54
1
answer

Friendly link with htacess

I made some settings in my htacess . Check it out: Within my folder www I have a System folder and inside it I have a file named Login.php . I set up forever that I type 127.0.0.1 apache always calls the file Log...
asked by 10.10.2016 / 15:51
1
answer

.htaccess import another file with rule

I have the following problem, I have an administrative area where redirects can be registered, and these redirects are saved in the database, I currently do the redirection via PHP , but I would like to do this redirection via htaccess...
asked by 08.03.2016 / 13:24
1
answer

leave / at the end of the url

I would like to hide the .php extension of the site from all pages and stick with the slash at the end example: www.meusite.com.br/pagina/ I would also like to hide pages that are like landing pages , which are like this: www.meu...
asked by 08.07.2015 / 00:51