Questions tagged as '.htaccess'

0
answers

.htaccess does not redirect correctly 404 Not Found

I have the following .htaccess that redirects with rewriteRule but does not make some addresses. RewriteRule ^/nosotros/?$ /info/about.html RewriteRule ^/privacidad/?$ /info/privacy.html RewriteRule ^/condiciones/?$ /info/terms.html...
asked by 04.12.2018 / 21:59
1
answer

Error 500 in Ubuntu Server 18.04 when running the .htaccess (url friendly)

I have my .htaccess configured with the following lines RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [L] RewriteCond %{REQUEST_URI}::$1 ^...
asked by 03.12.2018 / 06:11
0
answers

my web does not show styles using friendly urls with htaccess

I'm making my page and I use htaccess to create friendly urls, in it, I tell an item to do a href to a "contact" file html: <a href="contacto/"> .htaccess Rewriterule contacto/ contacto.html and the...
asked by 02.12.2018 / 18:23
0
answers

Redirect Index.php

I was using this code to redirect the URLs that carry index.php to those that do not carry index.php, and thus remove it from the middle. RewriteCond %{THE_REQUEST} ^(GET|HEAD)\ /index\.php/[^\ ]+ RewriteRule ^index\.php/(.*)$ /$1 [L,R=301]...
asked by 22.11.2018 / 16:40
0
answers

Redirect from one domain to another and mask

I have a web domain (xxx.com) redirected with .htaccess to the web domain yyy.com and it works correctly, what I need now is to mask the url, in summary accounts that appear in the browser address xxx.com I have the redirection like this: Rewr...
asked by 20.11.2018 / 20:28
1
answer

Url friendly by HTACCESS

I'm working on pure PHP and I want to work in ajax with friendly urls but I do not know how to configure the htaccess or where to locate it. What have I tried? create the .htaccess with RewriteRule ^utilities/(.+)\.php utilities/functio...
asked by 15.11.2018 / 17:44
0
answers

Help with .htaccess

I have this code to make url friendly <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^index\.html?$ / [NC,R,L] RewriteCond %{THE_REQUEST} ^.*/index\.php RewriteRule ^(.*)index.php$ /$1 [R=301,L] RewriteRule ^([a-z_0-9,\/]*)/?$...
asked by 13.11.2018 / 19:59
1
answer

.htaccess rewrite - filename.html a /? c = filename

SPANISH: Hello, I need it to work with all the html links (except with index), I tried using .htaccess but I had no luck. For example ... to change this link of: link to link Also if I go directly to link , it should be a mirror of l...
asked by 12.11.2018 / 06:41
0
answers

.htaccess blocks all ips of my range or allows them

Eerecien start in this world and I find this. what I want to do is that all the ip in Argentina are allowed to access the site, and the others block it .. well my .htaccess code is the next one order deny,allow allow from 5.8.46.0/25 allow fro...
asked by 11.11.2018 / 17:46
0
answers

Remove in a file the https

Hello, I have a doubt, by htaccess I am forcing the web to load by https, but is there a possibility in a file php that is read as http? Greetings * If the question arises why I need this, it is for a payment gateway, that activating t...
asked by 09.11.2018 / 02:29