Going nuts, please help with this html issue

by rafsco
2 replies
  • WEB DESIGN
  • |
I have a domain and I need to create a page called "form".
If I create the page http://mydomain.com/form.html it works, but I want to reach the page without typing in "html". Now, if I only type http://mydomain.com/form i get error 404.
A few days ago I was able to achieve this but then I have installed a few things on my hosting and and now I can't get to make it to work.
It is important to me because I have printed a bunch of flyers with the address without "html" and I would hate to through away all these flyers...
Any help would be very much appreciated.

Thanks
#html #issue #nuts
  • Profile picture of the author Patrick
    You can create an htaccess file and try inserting this there....

    Code:
    RewriteEngine On 
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule ^(.*).html$ /$1 [L,R=301]
    {{ DiscussionBoard.errors[8101792].message }}
  • Profile picture of the author onlineguru
    Here is an idea
    Create a folder called "form" and inside this folder create a new html file with the following name:
    "index.html"
    COPY the content of your actual "form.html" and PASTE it into your new "index.html"
    Now, when you type "http://mydomain.com/form/" you won't get a 404 error

    I hope this helps you out with your issues.

    Originally Posted by rafsco View Post

    I have a domain and I need to create a page called "form".
    If I create the page http://mydomain.com/form.html it works, but I want to reach the page without typing in "html". Now, if I only type http://mydomain.com/form i get error 404.
    A few days ago I was able to achieve this but then I have installed a few things on my hosting and and now I can't get to make it to work.
    It is important to me because I have printed a bunch of flyers with the address without "html" and I would hate to through away all these flyers...
    Any help would be very much appreciated.

    Thanks
    {{ DiscussionBoard.errors[8104061].message }}

Trending Topics