Hello,
can You help and explain how to hide folders in website structure ? folder properties... ? htaccess ?
What is the best way ?
www.host.com/folder/page.html -> www.host.com/page.html
How to hide folders
- BaconFries
-
- Posts: 5640
- Joined: Thu Aug 16, 2007 7:32 pm
Re: How to hide folders
Moved to the following Off Topic Section as unrelated to the use of the software.
Not tested but you can try adding the following to your htaccess if you have one substituting pages for your own folder name. For further help on the use of .htaccess you should contact your hosting provider.htaccess ?
Code: Select all
RewriteEngine on
RewriteRule ^pages/(.+)$ /$1 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.+) /pages/$1 [END]