I want to redirect my forms into different addresses e g thanks-a.html, thanks-b.html, … (to be able to set different goals for google analytics) but the page content would be always the same.
My idea is to have an index.html page in a folder and .htaccess file that shows index.html when any none-existing filename is called. Can somebody help me write that htaccess?
Thank You!
First make sure you have mod_rewrite enabled
In your .htaccess file put the following:
Where index.html is the page you want to show. This is different from what the other Andrew says because it seems to me you want to redirect everyone to a specific page, not a 404 page. Redirecting to a 404 is fine if you want that HTTP status but in this case I think the author wants to display actual content, in which case the request should certainly be accompanied by a 200 response.