Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and beginning April 20th, 2021 (Eastern Time) the Yahoo Answers website will be in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
How to redirect a slash URL?
I'm not sure if I'm using the correct terminology, which is probably why I can't find an answer by searching, but here goes-
I have a wedding website (www.example.com) and I want to tell guests that they can RSVP by going to www.example.com/rsvp
When they go to this URL, I want it to redirect them to www.example.com/rsvp.html. I don't want them to have to type in the ".html"
How do I go about implementing this (and while I'm at it, what is it called)? I have hosting through GoDaddy.
I forgot to mention- My site is hosted on a Windows server. I get the impression that .htaccess only works on Linux servers. Please let me know if this is not the case!
2 Answers
- Anonymous1 decade agoFavorite Answer
Technically this depends on the server configuration and the web project itself. However, the following should get you on your way with no problem:
If you do not specify a specific file in the url, (example: website/rsvp/) the server will look for a default file to serve up.
Two simple steps:
1. Create a folder named rsvp and put your page in that folder.
2. The name of the page in this folder must be a default name. For example, index.html for an HTML page.
Now, when visitors enter website/rsvp/ they are actually viewing website/rsvp/index.html.
Note, this is not to be confused with explicit url re-writing which is quite different.
Source(s): Web Programmer: http://sarasotawebs.com/ - Anonymous1 decade ago
first open a text editor like notepad,
next add this to it,
RewriteRule ^([^\.]+)$ $1.html [NC,L]
when saving it click save as type and change it to all files
then save it as .htaccess
upload it to your web site and it will remove all .html tags from file names in the url.