• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

htaccess and tidy url

Enthusiast ,
Dec 03, 2017 Dec 03, 2017

Copy link to clipboard

Copied

Used this...

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}\.html -f

RewriteRule ^(.*)$ $1.html

Pages connect both without the .html and with when typed into browser. However, when I use my nav menu links in the site.. they revert automatically to displaying the .html. How can I further modify to cover those internal menu links?

Thank you!

Views

259

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Dec 03, 2017 Dec 03, 2017

Instead of writing the link as

<li><a href="contact.html">Contact</a></li>

remove the extension as in

<li><a href="contact">Contact</a></li>

Again, I am only guessing at what you have done. Showing the complete code is much easier for us than a guessing game.

Votes

Translate

Translate
Community Expert ,
Dec 03, 2017 Dec 03, 2017

Copy link to clipboard

Copied

LATEST

Instead of writing the link as

<li><a href="contact.html">Contact</a></li>

remove the extension as in

<li><a href="contact">Contact</a></li>

Again, I am only guessing at what you have done. Showing the complete code is much easier for us than a guessing game.

Wappler, the only real Dreamweaver alternative.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines