Htaccess filesMatch doesn't work


#1

I have this .htaccess file in the root directory of my site:

<FilesMatch “^index$”>
ForceType application/x-httpd-php

I basically want to make this url www.mysite.com/index
go to index.php but I just get a 404. Any ideas?

Thanks!


#2

According to what you said, what should happen is:

  1. Browser visits http://example.com/index
  2. Server executes /home/username/example.com/index.php using PHP

Here is an idea: Use a redirect or a rewrite

See

:cool: openvein.org -//- One-time [color=#6600CC]$50.00 discount[/color] on [color=#0000CC]DreamHost[/color] plans: Use ATROPOS7


#3

I would guess you’re actually looking to use content negotiation.

emufarmers.com
Very little to do with either emus or farmers!