I have an issue with creating my rewrite for this cgi script query string. I'm using mod_alias/scriptalias to point incoming users to run a script. If a user browses to: [
//qa3eprpt02.enernoc.lab...] it runs a script an produces an ugly URL: [
qa3eprpt02.enernoc.lab...] Basically, I want to strip out the entire URI and query string so users only see a pretty URL: [
qa3eprpt02.enernoc.lab...] Below is some of my configuration.
#File called cognos.conf - contains mod_alias directives
ScriptAlias /ibmcognos/cgi-bin /opt/ibm/cognos/c10_64/cgi-bin/
Alias /ibmcognos /opt/ibm/cognos/c10_64/webcontent
<Directory "/opt/ibm/cognos/c10_64/webcontent">
Options Indexes MultiViews
AllowOverride All
</Directory>
#http.conf - section that has the mod_rewrite which I know is awful #and wrong but I need to reconfigure
RewriteEngine On
RewriteCond $1 !ldirector.html
RewriteCond $1 !crossdomain.xml
RewriteCond $1 !ibmcognos
# Comment out line below and replace HOSTNAME with DNS host entry
# for a given environment,ie. qa1report
RewriteRule ^(.*)$ [
qa3eprpt02.enernoc.lab...] [R,L]
Any help will be greatly appreciated. Thank you