Questions tagged as '.htaccess'

1
answer

Problem with (.) in friendly url

I have a website where I show a catalog of products, which with the famous friendly url, transforms said url. I have: www.miweb.com/productos/Plancha-para-ropa-nghkdk23 And redirect to: www.miweb.com/productos/productos.php?idproduct...
asked by 02.11.2016 / 14:45
2
answers

Restrict folder and files with .htaccess

I have the following directory: examples file.php file2.php helpers file3.php secret .htaccess index.html file.json .gitignore index.php README.md My .htaccess file contains the following: RewriteEngine On # Pro...
asked by 22.02.2017 / 15:21
1
answer

Redirect with htaccess an old URL to a new one

I am trying to redirect an old URL to its new structure via htaccess. For example, instead of www.unawebcualquiera.org/contacto/ to www.unawebcualquiera.org/es/contacto / Before changing to .htaccess I had this: RewriteRule ^contacto/ conta...
asked by 03.02.2018 / 15:09
1
answer

Permissions for calls XMLHttpRequest using the Uploadifive plugin

How about friends I have a problem using the Uploadifive plugin, to upload multiple images to my server, this plugin uses the XMLHttpRequest service. I have a .htaccess file that blocks the access to the directories and files, but I added the pe...
asked by 06.02.2018 / 22:40
0
answers

Redirect url in htacces with tilde

I want to redirect a url with a tilde to another with the same name, but without the tilde. I do not have much idea, but I tried to do this:    RewriteRule ^ ([^ o] ) or (. ) $ $ 1o $ 2 I've also tried:    RewriteRule ^ ([^ 'or']) '...
asked by 06.08.2018 / 17:18
2
answers

How do I make .htaccess for 404?

How do I make a .htaccess so that when it detects a 404 error redirect itself, that is to the index.html. I already have the file and I uploaded it to the page in the route / public_html, but I do not know what to put it in for it to work....
asked by 18.12.2016 / 20:24
2
answers

how to set up htaccess to be able to embed .php in HTML files

I have a web in html, css and javascript (without libraries or framework) and I need to embed footer and external header to make it easier to maintain. I found the following code that would solve it, but they clarify that, if it does not work, t...
asked by 13.12.2018 / 12:18
1
answer

Do .htaccess files work on Google Cloud VMs?

I have a project in an instance of Compute Engine (GCP) which develops it in PHP, HTML, CSS, JS and MySQL persistence. The problem is this: When testing the project on a local server (XAMP) it works correctly but when you migrate everything t...
asked by 10.03.2018 / 17:22
1
answer

How to make url friendly with .htaccess

Good morning ... I have been researching this topic but I can not find anything to help me, and I want to avoid that the extensions of my file are shown in the URL (eg contacto.php) What should my htaccess file take to be shown /? This is the...
asked by 18.04.2018 / 00:17
1
answer

Redirect URL terminated with multiple bars to the same URL with a single bar

It turns out I made a redirection to my web so that it redirected the url without a bar to the url with a bar as long as it was not a file. # si no existe un archivo que coincida con la solicitud... RewriteCond %{REQUEST_FILENAME} !-f # y si n...
asked by 05.04.2018 / 21:07