Questions tagged as '.htaccess'

1
answer

How to use Friendly Variables?

How to clean the url when passing values by url and that htaccess recognizes them as variables and this helps to execute the content. RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule...
asked by 02.01.2019 / 23:27
1
answer

Open the same file from several (or all) URLs

I have seen that many pages open the same file (for example /home/index.php ) whether you put ejemplo.com/articulo1 or ejemplo.com/articulo2 . My goal with this is to replace the home/&var=ejemplo with home/ej...
asked by 03.12.2018 / 19:34
2
answers

.htaccess - Friendly URL affects image paths and js

I explain: My website without friendly URL is like this link and my images and js work perfect src="img / image1.png" src="js / script.js" The error comes when I have friendly URLs link Because the DOM takes me th...
asked by 28.06.2016 / 02:36
1
answer

Redirect subdomain in .htaccess and use URL to redirect to subdirectory

I have a site, say http://es.misitio.com , and I need to use .htaccess to redirect the URL (using the subdomain to add it as a subdirectory) to http://www.misitio.com/es . The same for http://en.misitio.com => http://www.mi...
asked by 19.10.2018 / 06:42
1
answer

Remove the .php from the web pages in the url

I have a .htaccess in the root of my web folder with the following content: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}.php -f RewriteRule ^(.*)$ $1.php With this intent is that when accessing my web...
asked by 30.05.2018 / 12:01
2
answers

Create subname in wordpress

I need to create a subfolder in the domain link The subname I want to enable is link ** / en / ** recrea / Is there any way to do this? In the wordpress links does not let me do it and I do not know if you have to force it in some way wit...
asked by 15.05.2018 / 18:33
1
answer

keys with htaccess on a server with cakephp

I have a page in midominio.com.co/descargas/mibd.html this page is hosted in webroot/descargas/mibd.html I'm creating an htaccess there, this is your location webroot/descargas/.htaccess and I think I have some error calling...
asked by 06.04.2018 / 21:17
1
answer

How to make redirects in Apache2 in Ubuntu 16.04?

I have the domains mycompany.com & mycompany.com.co Goal : I want all traffic to go only to www.mycompany.com Doubts : In which file should the redirect be located in the Virtualhost directly or in an .htaccess file? If it i...
asked by 08.04.2018 / 12:52
2
answers

Migrate wordpress to a directory

I am trying to place a wordpress installation to a folder, instead of having it in the root of the domain. I make the migration without problem from mydomain.com to mydomain.com/folder The problem I have to point the domain to the folder for the...
asked by 13.02.2018 / 17:03
2
answers

Allow special characters in .htaccess

I have a problem when showing pdf files, in my htaccess I have this: RewriteRule ^([a-zA-Z0-9/]+)$ index.php?view=$1 Everything is working well for me, but at the moment of sending a url like this: href="files/RAD.pdf/" href="files/archiv...
asked by 03.08.2018 / 21:43