Skip to main content

All Questions

Tagged with
0 votes
0 answers
19 views

Blocking bots with apache htaccess

I am trying to block bots (mostly "AI" bots). I have this in my .htaccess file. <IfModule mod_rewrite.c> ...
ppr's user avatar
  • 101
0 votes
0 answers
36 views

.htaccess - Apache rewrite rules, some work, some don't

this Rewrite rule is forwarding to url: https://www.fliesen-alfers.de/fliesennivelliersysteme/verlegefix-keilsystem/basis-sets/1-5-mm-basis-set/?number=102 as expected: RewriteCond %{QUERY_STRING} (^|&...
user24710148's user avatar
0 votes
1 answer
51 views

if statement in htaccess

I'm using the following .htaccess to allow access to my website by IP address: <Limit GET POST> Require all denied Require ip x.x.x.x Require ip y.y.y.y </Limit> I was wondering if it ...
vespino's user avatar
  • 119
1 vote
1 answer
53 views

.htaccess to accept parameters in URL

I have a WordPress page with the following structure website.com.au/pre-registration/parameter-value/, where the parameter value was originally a GET parameter, but I was requested to make it part of ...
Leonardo Pessatti's user avatar
3 votes
1 answer
452 views

How to match beginning of file name using htaccess

I am attempting to modifying my .htaccess file within a specific directory. If a web user attempts to find any file in this directory that may be named like the following options, I want them to be ...
klewis's user avatar
  • 133
1 vote
1 answer
226 views

Creating a .htaccess in a subdirectory causes rewrite rules in higher level .htaccess to stop working

Sorry if this has been asked/answered before, but I was not able to find an answer to this particular problem. If I create a .htaccess file with a simple rewrite rule, that rule works. If I create ...
KBM's user avatar
  • 13
1 vote
2 answers
512 views

Apache Rewrite Engine redirect all request to index.php

I have a PHP web application on a Apache Web Server. The path to to web application on the Server is: /var/www/html/intern/organisation/example_app The URL to the web application is: https://www....
Mario's user avatar
  • 11
0 votes
0 answers
50 views

Why does this directory rewrite only work for top-level content, not subdirectories?

I have the following lines in my .htaccess file: RewriteCond "%{DOCUMENT_ROOT}/_legacy/%{REQUEST_URI}" -f RewriteRule "^(.+)" "%{DOCUMENT_ROOT}/_legacy/$1" [L] ...
kshetline's user avatar
  • 149
1 vote
1 answer
177 views

Edit .htaccess file to make file accessible

I was trying to make a WordPress plugin work, when I found, after hours of debugging, trial, errors and praying ancient Greek gods, that the plugin did not work because it was impossible for the ...
Life after Guest's user avatar
2 votes
1 answer
380 views

.htaccess return error if no RewriteRule meets the request

I'm trying my hands on writing a simple REST API and am currently trying to properly configure my .htaccess file. What I'd like to achieve is the following: have RewriteRules to direct requests ...
traxx2012's user avatar
  • 123
1 vote
0 answers
93 views

Apache2: mod_ratelimit only allowing half the speed

I'm trying to limit the file download speed in a directory I've got the following .htaccess <IfModule ratelimit_module> SetOutputFilter RATE_LIMIT SetEnv rate-limit 4096 </IfModule>...
DrDino's user avatar
  • 11
1 vote
1 answer
911 views

Redirect all URLs ending in ".-detail" to remove the dot

I have a rather odd situation where our old URLs are ending in .-detail and need changing to just -detail. For example: example.com/product.-detail needs changing to example.com/product-detail In ...
markbarabus's user avatar
-1 votes
1 answer
61 views

I'm in trouble with .htaccess RewriteRule

I'm trying make to a social platform like Instagram or Facebook and I wanna to show users, username like that examplesite.com/usernamehere so in the url. I'd been researching how to do this and I ...
Zafer İnci's user avatar
1 vote
1 answer
188 views

How Can We Do 301 Redirect Of Over 200 Pages To Corresponding 200 Pages At New Location?

I need help and need it fast. We recently migrated a subdomain to integrate with the domain. Eg. https://blog.example.com to https://www.example.com/blog https://blog.example.com has a ton of traffic ...
user18571's user avatar
2 votes
1 answer
2k views

Redirect part of a URL parameter to the URL-Path

I used a module that created links like this: https://example.com/login?create_account=1&back=https://example.com/product/2164/?ets_rv_add_review=1 I need to redirect them to: https://example.com/...
Ehsanai's user avatar
  • 21

15 30 50 per page
1
2 3 4 5
10