Announcement

Collapse
No announcement yet.

remove .html from URL....htaccess on Zeus

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • remove .html from URL....htaccess on Zeus

    Hey all,

    IVe got a website on a ZEUS server and all the urls end with the .html tag and if anyone enters the url without the .html then they get the 404 error.

    can anyone tell me what code i need for the .htaccess to remove the need for the .html.. if i can do it this way?

    Thanks in advance!
    Last edited by andy.king; 05-24-2012, 02:39 PM.

  • #2
    Hi Andy,

    Try this:

    Code:
    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME}\.html -f
    RewriteRule ^(.*)$ $1.html
    "All I know is that I know nothing"

    Comment

    Working...
    X