Apache/HTTPD: Adding Config Parameter to URL

Stugots

Supreme [H]ardness
Joined
Feb 25, 2004
Messages
7,255
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
 
You want to redirect every visitor to the exact same URL? .htaccess can be used to redirect traffic.
 
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:
Back
Top