Jump to content

Remove .html extention from all forms


Guest Roger Huston

Recommended Posts

Guest Roger Huston

Hello,

I am a bit strange and do not like the .html extention at the end of every page. I would rather just have it blank. Is there a simple way to remove it? Perhaps using the .htaccess file?

Thanks,

Roger

Link to comment
Share on other sites

  • 2 months later...
  • 2 years later...

Bumping an old thread, but here's a solution for CubeCart v5.0.4.

/classes/seo.class.php line 39

private $_extension			= '';




/.htaccess line 18


RewriteRule ^(.*)?$ index.php?seo_path=$1 [L,QSA]


from


RewriteRule ^(.*)\.html?$ index.php?seo_path=$1 [L,QSA]

You will likely need to wipe out your cache after making this change. So far it seems to work for me.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...