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...
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...
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...
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>...
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...
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...
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...
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...
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()">
&...
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...