I have a .htaccess file with the following lines:
Can somebody please tell me why:
site.com/disclaimer correctly works
site.com/disclaimer/ correctly works
but
site.com/thanks redirects to site.com/thanks/?a=thankyou (which is wrong)
site.com/thanks/ correctly works
????
I hope it makes sense what I am asking.
The redirect for the 'thanks' file is the only line in the file that doesn't redirect in the way I want it to, but it is essentially exactly the same as every other line.
Cheers,
Richard
| Code: |
| Options +FollowSymlinks
ErrorDocument 404 /file-not-found RewriteEngine on RewriteRule ^file-not-found/?$ index.php?a=file_not_found RewriteRule ^database-error/?$ index.php?a=database_error RewriteRule ^privacy-policy/?$ index.php?a=privacy_policy RewriteRule ^disclaimer/?$ index.php?a=disclaimer RewriteRule ^conditions-of-use/?$ index.php?a=conditions_of_use RewriteRule ^contact-us/?$ index.php?a=contact_us RewriteRule ^not-authorised/?$ index.php?a=not_authorised RewriteRule ^thanks/?$ index.php?a=thankyou RewriteRule ^google-search/?$ index.php?a=google_search |
Can somebody please tell me why:
site.com/disclaimer correctly works
site.com/disclaimer/ correctly works
but
site.com/thanks redirects to site.com/thanks/?a=thankyou (which is wrong)
site.com/thanks/ correctly works
????
I hope it makes sense what I am asking.
The redirect for the 'thanks' file is the only line in the file that doesn't redirect in the way I want it to, but it is essentially exactly the same as every other line.
Cheers,
Richard
