Hi guys.
I was wondering if it’s possible to use .htaccess to make a folder appear to be in the root of the document?
Example:
Accessing http://example.com/somefolder
looks like this in the browser:
Hi guys.
I was wondering if it’s possible to use .htaccess to make a folder appear to be in the root of the document?
Example:
Accessing http://example.com/somefolder
looks like this in the browser:
Try this
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^somefolder$ http://www.example.com [NC]
Here is a quick primer of some stuff that can be done with htaccess.
COPYRIGHT © 2012 ENVATO| TERMS OF USAGE| SUPPORT/HELP| ICONS BY TANGO + WEFUNCTION + FAMFAMFAM
Adobe®, Flash®, Flex®, Fireworks®, Photoshop®, Illustrator®, InDesign® and After Effects® are registered trademarks of Adobe Systems Incorporated.