.htaccess

As in one.htaccess file deny access to multiple folders at once?

I know how to prevent access to a folder on the site: just create a file in it .htaccess with the following content: deny f ... access, is there a possibility create a single .htaccess that will have instructions to ban multiple folders listed at once?

Configuring 404 errors in htaccess

There is an htaccess file with the following settings: AddDefaultCharset UTF-8 Options +SymLinksIfOwnerMatch Options -Indexe ... nu=$1 [QSA,L] If you enter an incorrect url, it redirects you to the main page of the site. Where I'm wrong. How to fix it?

Access-Control-Allow-Origin is not added to the response header

I get an error when I try to access fonts on the server from a local machine. Font from origin ' https://#######.##' has bee ... dified: Sat, 23 Apr 2016 09:11:31 GMT ETag: "1856f6-22af8-53123544a33d2" Accept-Ranges: bytes Access-Control-Allow-Origin: *

apache2 doesn't see it.htaccess

The problem is widespread, first I climbed a bunch of manuals and tried different options, in the end it did not go. Now I'm ... ional question apache and apache2, the difference in versions? Tell me what to do with it? Maybe I didn't install any mods?

I can't access certain directories(You don't have permission to access). What can it be, what to configure?

The situation is as follows. After restoring from a Bitrix backup, access to some directories was lost. Moreover, there are n ... "R"; I think that the problem is in it. But when I add a line with for_them, there is no result! Help me out! What do what?

How to do everything at once in mod rewrite?

I write a website in PHP, I use the Apache server. I need to make a redirect from the www address, human-readable URLs, a red ... ban users by IP, and much more with mod_rewrite, and that all this is configured through the admin panel. How do I do this?

How to make a CNC through.htaccess or other method

Hello, tell me how to do ЧПУ via .htaccess or another way. At the moment, I'm trying to implement it via .htaccess, but somet ... T_URI} [L,R=301] RewriteRule ^([a-z]+)/([a-z]+)/$ ?country=$1&region=$2&city=$3 [QSA,L] RewriteRule .* index.php [L]

Why does Apache return forbidden?

There is no .htaccess file in the root of the site, but index.php is present. Why does a 403 error occur when requesting a si ... md[1]: Failed to start LSB: Apache2 web server. Jul 11 17:36:38 web21 systemd[1]: Unit apache2.service entered failed state.

Remove the folder name from the url

There is a website and the page folder contains the main pages Www.site.com/page/stranica.php Creating .htaccess RewriteR ... page/(.+)$ http://www.site.com/$1 [R=301,L] I upload to the root and nothing happens. Where did I go wrong, please tell me?

Substitute for wp-admin, 404 error

How do I make sure that when I go to the site/wp-admin address, the error 404 is displayed? I tried to do this: <IfModule ... u can't change the address in the address bar (for example: site/404.php). It should be like a standard practice wordpress’a.

RewriteRule RewriteCond in. htaccess

The situation is as follows. I found an instruction on the Internet .htaccess using mod_rewrite to "tie" all the questions to ... understand the logic of the work, so that there are fewer questions in the future. Thank you in advance to all who responded

How to make it work.htaccess in Laravel?

Hello. I want to put the admin panel of the project in a separate folder. It will be on laravel. If the site has this stru ... ublic/$1 [L] </IfModule> That is, the address : site.ru/admin/public/home, I need to shorten to: site.ru/admin/home.

Forwarding from https://www on https without www

As through .htaccess configure redirects with https://www on https without www ?

301 redirect from www to without www with https does not work, why?

.htaccess RewriteEngine On RewriteCond %{HTTPS} off [OR] RewriteCond %{HTTP_HOST} ^www\. RewriteRule (.*) https://site.ru/$1 ... ru and also when entering http://www.site.ru forwarded to https://site.ru, and at http://site.ru on https://site.ru Thank you

Does not work.htaccess

Redirection of all requests to index.php and it gives an error, as I understood, the problem is that apache does not take int ... Cond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php Tell me, what is the problem?

Redirect from httpS to http

Tell me the redirect for the redirection of all the pages of the site, when changing the protocol with the preservation of th ... /www.site.ru/catalog/ I tried both with the indication of the port, and the conditions from the opposite != Thank you all!!

How to make a redirect from www to without www

I made a redirect with this code in the file htaccess: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.example.ru$ [NC] Rewri ... dex.php and thrown 404. How do I make it so that when I go to any page with www, I get thrown to a similar page without www?

Outgoing links (different) from the site redirect to 1 link

There is a website. It has outbound links. They are redirected in this way <input type="button" value="Перейти" onclick=" ... e code) so that once everything is quickly returned as it was. What method can I use to do this?, tell me? Htaccess? php?

Redirection from http to https

Good afternoon. It costs Apache+nginx in .htaccess I add RewriteCond %{HTTP_HOST} ^site\.com\.ua [NC,OR] RewriteCond %{HTTP ... hat На этой странице обнаружена циклическая переадресация. How to fix I need this redirection. P. s. Thank you in advance.

301st redirect in Wordpress (from a domain without www to a domain with www)

The content of the file .htaccess # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / ... ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [R=301,L] None of these options work. What am I doing wrong?