0

I am trying to set up a system where for one of my directories, "example.com/folder/", if a user types in ".../folder/?(RANDOM STRING)", it will display the content for ".../folder/" but keep ".../folder/?(RANDOM STRING)" in the address bar.

This setup should work for any characters, random strings after the "/?"

I am assuming this can be done with .htaccess

Thanks for your help

1
  • Can you specify which web server on which operating system you are using? Nov 7, 2014 at 8:43

1 Answer 1

0

This is normal, expected behaviour: www.exmaple.com/index.html will serve static (or even dynamic content) but unless the content served explicitly changes due to the querystring there should be no changes in the served content. This is often used by web developers to manage caching of javascript/style sheets by appending a version string to the querystring, so /style.css becomes /style.css?v1.0 and then ?v1.1 and ?v2.0 etc.

If your website does not exhibit this behaviour, it is likely due to a redirect that strips the querystring, ie: www.example.com/folder?string does a 301 redirect to www.example.com/folder/.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .