Questions tagged as 'htaccess'

0
answers

Redirect with htaccess without changing URL

I have a system that runs at www.dominio1.com.br/sistema and I need the user typing www.dominio2.com.br/sistema to be directed to www.dominio1.com.br without the URL being changed. I made a test by placing an .htaccess...
asked by 07.10.2017 / 06:50
1
answer

Set up domain for Wordpress page structure

I have a Wordpress installation with several "sites" .. I will explain:    site-principal.com/ - > opens a blank page (index.php, with no redirection in options / reading)       site-principal.com/site-um - > Page Wordpress 'Site One',...
asked by 20.09.2017 / 20:03
1
answer

Check if file exists through URL with .htaccess

I have the following situation, I need to check if a particular file exists, based on the URL I'm trying to access, if it exists normally displays, otherwise redirects to an error page. For example: I have the following file /paginas/co...
asked by 13.09.2017 / 21:11
1
answer

Redirect URL to mobile version with .htaccess

I'm making the mobile version of a website and I need it to redirect any page to its mobile version: Ex: If the page accessed is link you should redirect to link And so on to all the others. Note: I do not know much about .htacc...
asked by 09.08.2017 / 14:45
1
answer

.htaccess does not work

Hello, I already use these .htaccess rules and it has never given me a problem, so much so that I use it in other providers now, I would like to know if the apache or php version on the hosting server is in the way of running the rules. Rewrite...
asked by 12.08.2017 / 18:27
1
answer

Conflict RewriteRule in htaccess

I've done a lot of research but I did not find the solution to my problem. I have an htaccess in the following format: RewriteEngine On RewriteRule fotos$ arc_fotos.php RewriteRule fotos/$ arc_fotos.php RewriteRule minha-area/$ arc_minha_ar...
asked by 21.08.2017 / 17:16
0
answers

Forbidden for any htaccess

I'm using the Uniform Server portable server, I've already uncompressed the line to activate apache mod_rewrite, however I'm getting the 403 forbidden error for any .htaccess file I use, this is from CodeIgniter: RewriteEngine on RewriteCond...
asked by 30.07.2017 / 18:08
1
answer

Return error 404 for images

I need to return error 404 in when an image is not found on the server, but it is returning http code 200. This problem is happening because the server uses caching varnish and the support made me believe that the error of the images is turne...
asked by 05.07.2017 / 19:14
1
answer

How to release a URL and Query String level with slash or without via .htaccess and in others have a 404 error?

With .htaccess I need to release one url level to block the others with 404 error being: / example (can) / example / (can) / example / any_thing ( can not ) RewriteEngine On RewriteRule %{REQUEST_FILENAME} !-f RewriteRule %{REQUEST_...
asked by 19.07.2017 / 06:18
1
answer

Redirect access to the file via htacess

Good when the user enters some file with .txt in the url of the site I have to send it to an authentication file called download.php Example, if user type www.meusite.com.br/documento.txt I have to redirect it to the d...
asked by 18.07.2017 / 02:09