Jump to content

htaccess - remove extension, slash - file names same as folder name


roguewonder

Recommended Posts

I want to remove the file extension - I have done that.

I want to remove the trailing slash. - I have done that

 

But I cannot for the life of me get the  the regular page to display instead of the folder which show a tree of files within it.

 

 

site.com/website-tips.php

site.com/website-tips/increase speed.php

 

The extension drops off and the trailing slash too but when I navgate back through the vreadcrumb to website-tips (without php in html code) it gives me the folder and shows the file tree (files within website tips folder)

How would I solve this?

right now if I access the website-tips.php file, it shows the directory and its interior pages

 

Pls hlp out.

 

 

Link to comment
Share on other sites

  • 7 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

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.   Restore formatting

  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...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.