Questions tagged as '.htaccess'

2
answers

Create .htaccess and .htpasswd

I have a folder on a server where I have to add a password. I have researched and I have seen that there is a file .htpasswd . The problem is that it does not work for me. .htaccess AuthName "Directorio privado" AuthType Basic AuthU...
asked by 19.06.2017 / 12:51
1
answer

Use htaccess to make the most friendly urls

Previously I used my url in the following way http://www.nombredelaweb.com/rubro.php?id=juguetes-magicos I get the value of the variable like this: $variable = trim($_GET["id"]); Now I update and in the htaccess file add the following...
asked by 18.12.2018 / 19:31
1
answer

More than two variables in .htaccess

It's the first time I have to work with .htacces to make friendly URLs. With the following code I have been able to make this URL link become link Options -MultiViews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUE...
asked by 18.10.2018 / 17:22
1
answer

Does not recognize CSS and JS styles in CI3

This is the structure of my project in CodeIgniter3 -codeigniter3 --application --assets ---bootstrap ---build ---dist ---plugins --system but for some reason it does not execute CSS or JS <!DOCTYPE html> <html> <head>...
asked by 18.08.2017 / 15:23
2
answers

Rule to remove directory from URL

Good, I'm setting my .htaccess to put my web into production and the fact is that I do not finish it or I do not get along very well with this file and it gives me problems. I have the following directory structure: index.php login.p...
asked by 29.05.2017 / 10:21
1
answer

Problems with friendly URLs

In the code from PHP, in the links I am doing the following: <h1><a href='noticias/" . str_replace(" ","-",$articulos[$i]['titulo']) . "'>" . $articulos[$i]['titulo'] . "</a></h1> Which originates a URL for example...
asked by 31.05.2017 / 02:02
2
answers

How can I detect '#!' in a url?

I would like to be able to use these symbols #!data in my urls and get the text after the symbols to send it by PHP and do a search. I would like to implement this method with .htaccess and I would like to know how to do it. Thanks in adv...
asked by 18.02.2017 / 23:52
1
answer

.Htaccess does not allow me to use / in friendly URL

In my .htaccess I have the following: RewriteRule ^topic=([0-9]+)\+autor=([-0-9a-zA-Z/%&]+)\+titulo=(.*)$ /post.php?topic=$1&autor=$2&titulo=$3 [L] which allows me to use a url of this type: http://localhost/topic=8+autor=Jhon...
asked by 09.01.2017 / 02:01
1
answer

Friendly URL in Apache obtained from a Select Combo

I need to create a friendly URL from the result of launching a select combo by URL. I currently have the following form <form action="$path/index.php" method="GET"> <select name="filtro" onchange="this.form.submit()"> &...
asked by 30.11.2016 / 20:54
1
answer

How to redirect to the root directory when accessing a directory

Good, I have a problem, I'm making a page and when you enter a directory, load a page which shows all the files or directories contained in the current directory. How can I redirect the user to the home page and prevent the user from vi...
asked by 18.08.2016 / 03:16