Questions tagged [htaccess] (2144)

1
answer

How to set up a redirect on the folder?

Good afternoon. Happy holiday to all! Can't solve a problem and really need :( Inputs: 1. There is a website it is configured to cache pages, cache files the essence html pages which are stored in the folder page-cache. 2. All requests that go to the root /, first created in the cache and then the page is taken already w...
aubree_Lang asked April 19th 20 at 12:48
0
answer

The site works on the test server localhost:8000. How to create .htaccess to run on a remote server?

When you start the site, use the run()function public function run ():self { $match = $this->router->match(); $view= $match['target'] ; $params= $match['params']; $router= $this; $isAdmin= strpos($view, 'admin/') !== false; $isUser =strpos($view, 'user/') !== false; if(!$isAdmin && !$isUser){ $layout ...
Shanny asked April 19th 20 at 12:44
1
answer

Translation of the letters in the url from upper to lower case?

Found in Internet this code. For that would be if the url has capital letters, it is translated to lowercase. Everything is OK, but if the url has a hyphen, then going straight to the main page. Who knows how can I improve? RewriteEngine On RewriteBase / # If there are caps, set HASCAPS to true and skip next rule Rewrite...
evelyn_Glov asked April 19th 20 at 12:41
1
answer

As in .htaccess combine duplicate pages?

Good afternoon. In General, htaccess for me gromadnoe pain. The problem is, the server test which located the index files and directories with other index files. Among these directories lies my wanderer, test/list/. Which parses the URL and allocates a certain page. The problem is that when you navigate to a new page in t...
christophe.Treutel99 asked April 19th 20 at 12:39
2
answers

Access restriction via .htaccess allow access only odna SP, odd not out, how to implement?

Hi all. Deny access to all except one IP address. .htaccess Order Deny,Allow Deny from all Allow from 100.00.00.00 I forgot to write that the domain is using Cloudflare Add so, and then try to go to the site and will not let me, although I added my IP, a hundred times already checked, if you remove the ban, the website...
adrianna.Keeling20 asked April 19th 20 at 12:38
1
answer

How to remove the key from the URL?

Hi. There is a link: gdz2/index.php?id=2 You need to remove keys "?id=2" It is desirable that-the URL looked like this: gdz2/index I think this can be done using .htaccess, but have no idea how to do it... Thanks in advance!
marcel asked April 19th 20 at 12:34
0
answer

Redirect wodrpess when you sign ampersand in url, why and how to get rid of?

Hello! can someone faced with such here a miracle when you pass the url localhost/?&aaa=aa occurs a 301 redirect to the page localhost/?aaa=aa, that is, he stupidly removes the sign & prompt who faced it ? I guess you need to configure the file .htaccess to not redirected, only here in that my knowledge is not so d...
eryn.Nien asked April 19th 20 at 12:33
1
answer

How to change htaccess?

Good day, here is an example of how we are redirecting from subdomain to folder of main domain RewriteEngine on RewriteBase / #address subdomain RewriteCond %{HTTP_HOST} ^(www\.)?sub\.domain\.dev$ [NC] #folder which will be forwarding RewriteCond %{REQUEST_URI} !^/sub/ #the redirecting itself RewriteRule ^(.*)$ sub/$1 [L]...
Emil.Walter15 asked April 19th 20 at 11:53
2
answers

How to make redirect in htaccess with the replacement character in the setting?

There is a URL of the form: /index.php?route=extension/payment/test/check&trx_id=321&lang_code=ru&merch_id=123&o.order_id=18&ts=20200413+10%3A38%3A31 You need to check that route=extension/payment/test/check and make 301 redirect with the replacement + character for T in ts parameter. The difficulty i...
willy.Marvin asked April 19th 20 at 11:53
0
answer

How to run a subdomain within the main domain?

How to open subdomain.domain.com accessed at: domain.com/link ? don't redirect to the subdomain, namely to open within the main website
jillian_Cron asked April 18th 20 at 13:35