Questions tagged as '.htaccess'

2
answers

Help with .htaccess - Url Friendly

I have a website developed in php and mysql now I want to use URL friendly to my links. I have for example the traditional link: midominio.com/portal/public/oficinas.php?seccion=24 24 is to the section: office On this page it show...
asked by 27.04.2016 / 00:35
3
answers

What value does a $ _GET give you?

I have the following code where I get data from the Urls if (isset($_GET['id'])){ $url = $_GET['id']; } I check the value that variable $url is giving me as a result:    book-php / Currently the data is obtained in such...
asked by 19.10.2017 / 14:48
2
answers

How can I protect my site from XSS attacks?

I would like to protect my site against XSS attacks of any kind, as I can do with htaccess or php.     
asked by 07.03.2017 / 08:16
1
answer

Remove php / html extensions with .htaccess

I want to remove php / html extensions with .htaccess I have this code: <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php </IfModule> b...
asked by 19.06.2018 / 16:22
2
answers

How to create multi subdomains from folders?

How to create multi subdomains with htaccess from folders, let's say I have my folders like this /folder1/folder2/ and I want my address to be so folder1.folder2.dominio.com     
asked by 29.06.2016 / 01:48
1
answer

Redirect multiple requests get in a single line or function

I have finished a website and I am creating the necessary 301 redirects in the file .htaccess . I have one of the old web sitemaps that has 100+ requests of the type: ?menu=nombre-del-plato On the new website there are no similar r...
asked by 10.05.2016 / 12:45
1
answer

How do I lock a specific folder on my server using htaccess?

On my server I want to upload files and pages that only I can see. I know that with the ... order allow,deny allow from (IP) deny from all I can block people, but I block all the server and that's what I want to avoid. How do I do a...
asked by 23.12.2016 / 03:51
1
answer

Redirecting 301 using htaccess

I have a problem with some redirections in a site when creating a redirection of a <etiqueta>.html to a <categoria>/ . The problem is that you drag the variable. The <etiqueta> s are a predefined list by...
asked by 02.07.2017 / 21:20
1
answer

How can I hide a query string from the url?

I want to hide the query strings of the url, so I know if the url has the query and only get the value of the query. Let's say this is my url: http://miurl.com/?query=valor And I want it to be modified in this way: http://miurl.com/val...
asked by 09.03.2017 / 23:51
1
answer

.htaccess error when uploading to server

I had previously posted this question how to create friendly URLs without losing css and js e imágenes . In localhost works perfectly without any problem. The problem arose when uploading to the server hostgato...
asked by 08.01.2017 / 03:00