menu

Recent questions tagged htaccess

2 votes
1 answer
How do I change the URL in the address bar? Hello all, I need help, I can not figure out how to properly make a substitution URL, at the input of my link looks like this: /blog/2020/10/27/alkogolnyj-delirij-simpto ...
by MayorPlay
asked Sep 21, 2021
1 vote
1 answer
How do I call the content of a site from another directory? It is necessary to call the contents of the directory at ww2.example.com (with the rights of the current user, without recourse to root rights). How can this be done? / ...
by Mortech
asked Sep 21, 2021
1 vote
1 answer
How can I exclude one directory from the {REQUEST_FILENAME} !-d condition via .htaccess? Hello, everyone! RewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteCond %{REQUEST_FILENAME} ^(catalog)/$RewriteCond %{REQUEST_URI} !.\.(ico| ...
by JaxAdam
asked Sep 21, 2021
1 vote
1 answer
How to set a redirect through httacess in case of a dynamic link? Is it possible to do this redirect through httacess? There is a link like this site.com/wp/category/titlecategory/ /category name/ is a dynamic link, categories ar ...
by VPVPVP
asked Sep 20, 2021
1 vote
1 answer
How do I redirect the site using .htaccess? The first thing I do is remove the html extension: RewriteCond %{REQUEST_FILENAME} !-fRewriteRule ^(^\.+)$ $1.html NC,L When a user goes to an old address with an ...
by filatovaa
asked Sep 20, 2021
1 vote
3 answers
How can I disable url access (downloading of the archive)? I searched google, took a lot of examples did not help (even some of the authors of the posts themselves did not help judging by the comments, or I do something wrong). ...
by temakorolev1
asked Sep 20, 2021
1 vote
1 answer
How can I disallow executing .htaccess files in a folder on the server? I have a site on a local xampp server. For security reasons, I am trying to prohibit execution of all files, except for pictures, in the folder where site users download ...
by Aricus
asked Sep 20, 2021
1 vote
1 answer
Why doesn't it work when I change the url to a different one? Hi all, I would like to change the URL to have /site1/lp-admin/ in the browser and actually download from here /files/site1/lp-admin/. site1 - can be any (site2, habr, ...
by rinaz22
asked Sep 19, 2021
1 vote
2 answers
How do I get 301 dynamic redirect on Apache? site.ru/?page=3 to site.ru/page/3/ (any number is possible) How do I get 301 dynamic redirect on Apache? ...
1 vote
1 answer
How to restrict access to the directory in .htaccess, but not for all files? Good day. Can you tell me how to properly configure the file htaccess and make it so that to restrict access to the directory (to make access by password), but leave fr ...
by shurc
asked Sep 19, 2021
1 vote
1 answer
Is there a problem with RewriteRule in htaccess? Friends, please advise how to properly compose RewriteRule to make it work properly. There is a rule: RewriteRule ^katalog/(a-z0-9-+)(/(a-z0-9-+))?(/page-(\d+))?/$ ...
by Deimos
asked Sep 19, 2021
1 vote
1 answer
How do I redirect a page like /+7999999 to /? Tried through plugins, but they do not accept the plus sign. How do I do this? ...
by godsplane
asked Sep 19, 2021
1 vote
1 answer
How do I redirect a file in a directory to another subdomain in .htaccess? Hi all, help please. I need to redirect https://old.site.com/Gallery2/index.php at https://new.site.com/Gallery2/index.php I know that you need to create a file .ht ...
by Foxman322
asked Sep 19, 2021
1 vote
1 answer
Open only access to the site through the PS and close via a direct .htaccess? How to close access to the site by direct visits, and leave only transitions from search engines. Explanation: If a person enters through any PS, and finds it in a sear ...
by pofx
asked Sep 15, 2021
1 vote
1 answer
How can I write the redirect condition in the htacces file in RewriteCond to redirect several (slashes) to 1? Good afternoon! The question of redirecting several slashes to one. With this code we were able to remove the extra (slashes) at the end of the URL: # Убираем повторяющи ...
by AgeWalker
asked Apr 4, 2021
1 vote
1 answer
Is the .htaccess entry configured correctly? I set up redirection from http to → https and from www to → without www. Code: # BEGIN WordPress<IfModule mod_rewrite.c>RewriteEngine OnRewriteBase /RewriteRule ...
by folgilya
asked Apr 3, 2021
1 vote
1 answer
How do I change the index file? Good day, how to change the index file in another folder publicindex.php so that there is no 403 error when you go to the site www.yoursite.com to open like this, not ...
by solo45
asked Apr 2, 2021
1 vote
1 answer
How can I use .htaccess to replace the index.php load? There is a site on WP and constantly index.php changes with the code of a virus... I can't find the virus itself. How can I change the loading index.php to another throu ...
by bossigorxxx
asked Apr 2, 2021
1 vote
1 answer
How to show a different picture with a command in htaccess? Good day, dear specialists. On hosting is a folder, it has a lot of pictures, the names are random, but always in pairs (the same, just a different resolution - 40 and ...
by Ysery
asked Apr 2, 2021
1 vote
1 answer
How to make a stub on the site with access to the file? When entering the site the user is shown a stub - maintenance.php RewriteCond %{REQUEST_URI} !/maintenance.php $ RewriteRule $ /maintenance.php R=302,L The main ...
by rabodis
asked Mar 29, 2021