My goal:
domain.com/folder
rewrite β
domain.com
this applies to ALL links within this site. I mean, the site has links like:
domain.com/folder/forum.html domain.com/folder/community.html
and etc.
It is my goal:
domain.com/forum.html domain.com/community.html
and etc.
and itβs very important that the βfolderβ is never in the URL in the visible host.
I have tried many codes already, but I really could not solve this problem. My best attempt was with this code:
Options +FollowSymLinks RewriteEngine on RewriteCond %{REQUEST_URI} !(.*)folder RewriteRule ^(.*)$ folder/$1 [L]
If i introduce
domain.com
I get the contents
domain.com/folder
which is correct (the "folder" is not listed in the URL shown). But when I click on some site links, for example: domain.com/folder/community.html, then I can again see the "folder" in the URL, but I want it to be deleted ALWAYS.
here is my site:
thewedgiecommunity.x10.mx/wedgiecommunity/
My goal is to remove "wedgiecommunity" (= folder) This link works
thewedgiecommunity.x10.mx/
But when you click "Community" (
thewedgiecommunity.x10.mx/wedgiecommunity/community.html
), then again I get "wedgiecommunity" in the url.
It would be great if someone helped me
source share