Forum Moderators: phranque
I have an application that currently generates an HREF in the form of http:/www.good_app.com/cgi-bin/lmn.cgi/subdir/start.html?c=14
I have changed the HREF (for search engine reasons within our software) to generate on the output: http:/www.good_app.com/subdir/horses.html
I must use parameters within our software in order to process the data records. i.e. start.html?c=14
my rewrite rule looks like this:
RewriteRule ^horses.html$ /cgi-bin/lmn\.cgi/subdir/start\.html?c=14 [L]
I, of course, am getting back a Page Not Found 404 error.
My directory structure looks like this:
The site is loaded from this dir thru our config files
/home/usr/public/subdir
The binary of the software runs in this dir
/home/usr/public/cgi
The softare platform runs in this dir
/home/usr/public/private/subdir
the .htaccess file is in /home/usr/public/private/subdir
I expect I have things at the wrong level ---any help?
RewriteRule ^horses\.html$ /cgi-bin/lmn.cgi/subdir/start.html?c=14 [L]
Jim
I have .htaccess files, but they only apply to user password/access rules. -- No rewrites. I do have the rewriteengine on, but I am not sure what Options have to be set. Where do i read about them.
You may also wish to try putting "RewriteOptions inherit" ahead of the rule itself.
Take a look at the server error log as well as the access log -- correlating the information in those logs files may be quite helpful in determining the problem. It is also possible that you cannot use mod_rewrite at your 'level' on this server.
Jim