Good morning all!
# Prevent viewing of .htaccess file
<Files .htaccess>
order allow,deny
deny from all
</Files>
# Prevent directory browsing
IndexIgnore */*
# Set the default handler
DirectoryIndex index.php
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^(home|add-fault|faults|generate-t-card|view-fault|available|about).html$ index.php?process=$1
RewriteRule ^index.html$ index.php
This mod rewrite/htaccess file I have stripped down to it's relevant parts, this gets parsed fine, yet the links that I have (and have working on other 'live' websites perfectly) don't seem to be processed via this file - in other words, consider this:-
<a href="generate-t-card.html">Start a new card</a>
works with the help of the <base href="the site address here">
unfortunately the structure of the site is like this:
http : //www.example/intranet
which is fine!
so that translates in to this:-
(on mouse over of the links)
http: // www.example/intranet/generate-t-card.html
but in the address bar, the link is parsed and treated like it was a query string link:-
http: // www.example/intranet/index.php?process=generate-t-card
even though it is mod rewrite ready!
I haven't seen this before, so I thought I would post for some help!
Background info, the intranet root dir is on a server, in a users directory and the apache conf files have been set to state that the root IS the directory/folder in my users space on the server, our IT administrator has sorted this out - and he assures me that my .htaccess file is to blame for this...
Thanks for any input!
Cheers,
MRb