I have an odd problem with a .htaccess file which defies logic and I was hoping someone could suggest a possible reason for the behaviour.
I have cut down the contents for clarity but the problem still persists.
The problem centres around the Options indexes command.
The initial .htaccess file looks like this.
I call the following URL in a browser
and the browser contains all the images in folder.
I now change the indexes command (to hide the list)
It successfully runs forbidden.pl
Remove the 's' from images (in the address bar)
Displays the standard windows 'The Webpage cannot be found' window rather than running forbidden.pl.
Replace the 's' (return the URL to the previously working one)
Still displays the standard windows 'The Webpage cannot be found' window rather than running forbidden.pl.
I have cleared caches etc. but nothing appears to affect the results.
In the full version, there are quite a few Rewrite rules which work perfectly so the .htaccess file is being processed.
I get this behaviour on all of our computers but when I view the URL through a proxy server it works fine.
Has anyone any thoughts because it is driving me crazy
Keith
I have cut down the contents for clarity but the problem still persists.
The problem centres around the Options indexes command.
The initial .htaccess file looks like this.
Code:
ErrorDocument 400 /cgi-bin/forbidden.pl?call=400&
ErrorDocument 401 /cgi-bin/forbidden.pl?call=401&
ErrorDocument 403 /cgi-bin/forbidden.pl?call=403&
ErrorDocument 404 /cgi-bin/forbidden.pl?call=404&
ErrorDocument 500 /cgi-bin/forbidden.pl?call=500&
Options +indexes
Code:
[URL unfurl="true"]http://www.domain/images/[/URL]
I now change the indexes command (to hide the list)
Code:
Options -indexes
Remove the 's' from images (in the address bar)
Code:
[URL unfurl="true"]http://www.domain/image/[/URL]
Replace the 's' (return the URL to the previously working one)
Code:
[URL unfurl="true"]http://www.domain/images/[/URL]
I have cleared caches etc. but nothing appears to affect the results.
In the full version, there are quite a few Rewrite rules which work perfectly so the .htaccess file is being processed.
I get this behaviour on all of our computers but when I view the URL through a proxy server it works fine.
Has anyone any thoughts because it is driving me crazy
Keith