Skip to main content

All Questions

Tagged with
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
231 views

Intercept HTTP POST response from Reverse Proxy in Apache

I have following configuration in my Apache server and requirement is to intercept HTTP POST request to /api/submit endpoint and trigger a CURL request to a remote URL before forwarding it to backend ...
user8373873's user avatar
0 votes
0 answers
151 views

Apache2 folders redirect to IPs

I have installed Apache/2.4.56 (Debian), a noip URL and severals LXC containers. I need to access to the web apps inside the LXC containers: example.com/app1 -> LXC container 1 (with Zend2) example....
Lethal's user avatar
  • 1
1 vote
1 answer
82 views

Apache VHost Redirect /dir/ to subdomain

I had applications running on the following variable links: www.example.com/topics/vardir/show www.example.com/education/topics/vardir/vardir/show www.example.com/literacy/topics/vardir/show www....
Josh Hawkes's user avatar
0 votes
1 answer
495 views

htaccess rewrite rule to a specific PHP page doesn't work

I have the following code in my .htaccess file, placed in the root of my Ubuntu 22.04 instance: Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{...
Frank Eno's user avatar
  • 101
0 votes
1 answer
39 views

apache2 mod_rewrite rule error (although i think i did everything correctly, and have exhausted google's searchresults)

this rewrite rule is not hitting it's mark :( RewriteCond %{REQUEST_METHOD} ^(GET)$ RewriteRule ^/wiki-search/(.+)$ NicerAppWebOS/index.php?app-wikipedia.org-search=$1 [L,END,PT,DPI] apache ...
Rene Veerman's user avatar
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
171 views

Apache Rewrite Based on Query String

I'm trying to detect the presence of a particular name/value pair in the query string and, if it exists, do a thing. I'm trying to do this in a conf file that's stored in conf-available/ and after ...
Rob Wilkerson's user avatar
2 votes
3 answers
1k views

Apache on debian don't redirect http to https correctly

Debian 11 config file: /etc/apache2/sites-enabled/000-default.conf <VirtualHost *:80> RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} ...
Ishayahu's user avatar
  • 187
0 votes
0 answers
1k views

Apache 2.4.52 HTTPS Rewrite no longer works on Ubuntu 22.04

I have been forcing HTTPS upgrade through mod_rewrite for years on Ubuntu 18.04 LTS servers. I recently upgraded a few of these servers to Ubuntu 22.04.1 LTS to ensure the latest security and Apache ...
Nick Bedford's user avatar
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 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

15 30 50 per page
1
2 3 4 5
8