Questions tagged as 'htaccess'

1
answer

how to allow access in .htaccess file [duplicate]

My ".htaccess" looks like this: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?/$1 [L] RewriteCond %{HTTP_HOST} !^$ RewriteCond %{HTTP_HOST} !^www\. [NC] RewriteCo...
asked by 26.08.2016 / 00:50
0
answers

How to take advantage of browser caching?

I have read and reread several times on this subject but never understand how something I do on my computer will make the website get faster on the third party computer ... Not to mention that when making such modifications on my computer I w...
asked by 07.06.2016 / 14:38
1
answer

Redirect by htaccess

Good afternoon, I need to do the following in my .htaccess. If the REMOTE_ADDR (IP) is in this range 192.168.0.1 through 192.168.10.254    192.168.0.5/system If REMOTE_ADDR (IP) is an external IP, type 177.45.85.95   ...
asked by 01.06.2016 / 21:30
1
answer

Malfunctioning of the site after change in .htaccess

For a site that has a friendlier url I've removed the .php using the following commands within .htaccess : RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] It worked perfectly for the...
asked by 04.05.2016 / 20:17
1
answer

how to pass url parameter via get

I'm having a question regarding passing parameters from one page to another. I've tried doing it in several ways via get. I can even get the parameter, but not all the parameters I can get. In the example below, I can only get the last id regist...
asked by 28.05.2016 / 08:46
0
answers

How to ignore a subdirectory that is not being represented in the current address?

Note: The links are fictitious, but they represent my problem. I have a project made in prestashop that in the production environment, is inside a sub directory: www.site.com/rio/index But in my development environment I'm using it,...
asked by 30.05.2016 / 15:32
0
answers

htacess with variables

Hello, I'm trying to use htacess with varis, but I'm not succeeding. My htacess is so RewriteEngine On RewriteRule ^$ /site/ RewriteRule ^index$ /site/index.php RewriteRule ^continue/([a-zA-Z0-9]+)/$ /site/continue.php?id=$1 [QSA] But...
asked by 10.04.2016 / 06:14
0
answers

Redirect or remove function.include with .htaccess in Wordpress

I would like to know if there is a way to redirect the 404 error of several articles that have been happening, the example is as follows: link link This occurs in several articles, is it possible with .htaccess to redirect this error t...
asked by 27.04.2016 / 03:51
1
answer

Is it possible for htaccess to interpret a file as a directory (subdomain)? [duplicate]

I have several files with various contents, type: ayuda.php? go = faq, ayuda.php? go = form, etc. I would like something like: help.site.com/faq, help.site.com/form, etc. Is it possible via htaccess that the help.php file be interpreted as a d...
asked by 28.03.2016 / 19:49
1
answer

AndroPHP htaccess mod_rewrite

I have installed AndroPHP , but my .htaccess is not working because apache's mod_rewrite is disabled, How do I enable mod_rewrite in AndroPHP?     
asked by 05.04.2016 / 15:23