Welcome to the Treehouse Community
Looking to learn something new?
Nick Jaques2,022 Points
Redirect pages in HTML.
I have a site example.com , however I don't want to redirect this page, I want to be able to use example.com/kickstarter , and I want this to be a redirect. I made a file and called it kickstarter.html and on the web redirect only works if I type in example.com/kickstarter.html , can I do this without the .html on the end? I just want it to be example.com/kickstarter . Very hard to find info about this online...Please help! I have used
if you create a folder named "kickstarter" in your home directory and inside this folder add a index.html - you can access this kickstarter/index.html via example.com/kickstarter
If you want to create "nice looking and search-engine friendly" urls can do the following with a .htaccess file in your home directory:
RewriteEngine On RewriteRule ^([^/\.]+)/?$ /index.php?content=$1 [L]