Test the entire site (Advanced)
To simplify testing of more complex presentations with multiple pages, or pages in a specific directory, you can use the file .htaccess.
- For the entire web site .htaccess file inserts directly into the root directory.
- If we want to test only a certain directory and pages in it, and then paste the file only to a specific directory.
Edit the file .htaccess
Recourse shall be had., which overwrites the specified address that make up the port 8080. Is done automatically, the user would have to do to test the ručne.
During the existence of the rules in a .htaccess file, make sure that you have already turned on..
Subsequently, just insert the following 3 lines:
| RewriteEngine on | # turns on. |
| RewriteCond% {SERVER_PORT}! ^ 8080 $ | # If the IP is not the selected port 8080, so splni by radek |
| RewriteRule ^. * $ http://% {With}: 8080% {REQUEST_URI} [L, R] | # doplni port 8080 in the address |
For testing all newly added comment lines using #, or delete.