Questions tagged as '.htaccess'

0
answers

friendly url with dynamic variables

My .htaccess contains the following ErrorDocument 404 /errores/404.html ErrorDocument 500 /errores/500.html RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php With this I...
asked by 25.09.2017 / 18:48
1
answer

Problem with root redirects

You see, I have a domain called www.cssblog.es , and a subdomain called comunidad.cssblog.es . The fact is that when you enter comunidad.cssblog.es , you redirect me to the main page. However, if I wrote cssblog.es/comuni...
asked by 17.09.2017 / 04:10
2
answers

Problem with .htaccess ErrorDocument

I have a page of 404.php and the intention is that using .htaccess will take you to that page in case of error 404, but it does not work. This is the htacccess file: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST...
asked by 14.09.2017 / 19:11
1
answer

Create friendly url with .htaccess

I am creating a personal website, in which I will have only one index page with different languages. I have 3 links that call me by parameter to the index by passing the language: <li class="lang"><a href="index.php?lang=en">EN<...
asked by 16.09.2017 / 16:25
0
answers

Display another file name in URL with .htaccess

I wonder if it is possible to show another name that is not the actual name of the current file, for example to be in localhost/Index2.php But show localhost/Index without the .php, even if we really are in Index2.php .     
asked by 07.08.2017 / 16:19
1
answer

Make url with api rest php

I have two tables: cars and garages. I want to do the following: url/coches/xxx/garaje where xxx is the ID of the cars. The problem is that I do not know what to put in the .htaccess and where to put the rest to appear. I already...
asked by 15.03.2017 / 21:08
0
answers

Prevent a subfolder from redirecting to a subdomain

I have added a new subdomain on the server, so the address has been: subdomain.domain.org. The problem is that the subdomain matches a WordPress folder that already existed, ie domain.org/subdominio/, and is automatically redirecting to the new...
asked by 03.10.2016 / 19:33
1
answer

Redirection 301 Htacces

A client at first wanted his web page to show / shop at the end of his url, now he wants it not to show it, he has this in his account that I put at the beginning. Your hosting is shared, you have the web in a folder / shop and the url of the do...
asked by 08.08.2016 / 07:01
1
answer

htaccess file

Good morning, I need the URLs that are written with # the server automatically write them with% 23 which is the only way it works, some example with the htacces file? please.     
asked by 19.05.2016 / 17:55
1
answer

Problems with .htaccess in Apache2 Debian

I have installed on my local server (xampp + wordpress) a page with wordpress where I have a file .htaccess , this file is located in: xampp\apps\wordpress\htdocs\Directorio\.htaccess along with all my files .php , here everyt...
asked by 21.04.2016 / 15:17