Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <<<<<<<<<<<<<<<<<<<NO HTACCESS:>>>>>>>>>>>>>>>>>>>>>>>>>
- RewriteEngine On
- RewriteBase /
- options +FollowSymLinks
- <Files .*>
- Order Deny,Allow
- Deny From All
- </Files>
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteRule .* index.php/$0 [PT]
- <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<NO SITE >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
- $folder = '/'; // pasta onde se encontre o site, caso exista
- $uri = (string) substr($_SERVER['REQUEST_URI'], strlen($folder)); // remove a pasta do resto do URI
- echo 'URI : '.$uri;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement