Apache/HTTPD: Adding Config Parameter to URL

Stugots

Supreme [H]ardness
Joined
Feb 25, 2004
Messages
6,987
Can someone help point in the right direction on how to add a config parameter to a URL in Apache/HTTPD? Is this done with modrewrite, or is there a better way that I should be trying to do this?

The specific web app in questions is called KeeWeb, it's a web based client for KeePass.

https://github.com/keeweb/keeweb/wiki/Configuration
 

FNtastic

[H]ard|Gawd
Joined
Jul 6, 2013
Messages
1,419
You want to redirect every visitor to the exact same URL? .htaccess can be used to redirect traffic.
 

Stugots

Supreme [H]ardness
Joined
Feb 25, 2004
Messages
6,987
You want to redirect every visitor to the exact same URL? .htaccess can be used to redirect traffic.

Didn’t want to use a .htaccess file. I ended up figuring it out.

RewriteEngine on
RewriteCond %{QUERY_STRING} ^$
RewriteRule ^ %{REQUEST_URI}?config=config.json [QSA,R,L]
 
Last edited:
Top