When a user manually navigates to a certain folder on a website (e.g. 'images'), how do you redirect them to the root directory?
The best way to do this would be to add a .htaccess file to the directory you want people to be rerouted from. In this file, you will want something along the lines of: RewriteEngine On RewriteRule ^.*$ / Code (markup): This is basically telling the browser to redirect any attempt at accessing the current directory to the root directory.
Right now I am getting the index content, with no styles. It isn't actually redirecting right now. I didn't want to be testing in my root directory, so I am testing in a sub-folder with it's own index. Example: website.com/website_test/index.php/images. Is this throwing something off?