Forum Moderators: phranque
I have an HTML page widget.html, maybe some JAVA or CSS but nothing else, it is in the root directory. There is also a folder named /widget in the root directory, The problem is that people type in mysite.com/widget (they forget the .html) and they get a file listing for the folder /widget. Is a simple redirect possible here or would it cause other problems? Or am I better off just putting in the effort to rename the folder?
Do take into account the search engine rankings of the pages in that subdirectory versus the ranking of the one "widget" page when doing this, since different URL = different page in the search engines' eyes...
Also, you can configure your server to deny directory listings for cases like this, using the
Options -Indexes
Jim
would I be able to redirect mysite/widgets to mysite/widgets.html without causing any problems regarding the the folder mysite/widgets? so that anyone typing the URL mysite/wigets will not get that folder (which exists) but will instead get the page widgets.html in the root folder?
thanks for your patience
After reviewing the Apache forum charter [webmasterworld.com], the documents cited therein, and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com], take a shot at the code and post your best effort. We'll be glad to help you get it working.
Jim