Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- httpd.conf
- ====================
- #make sure mod_rewrite is enabled
- LoadModule rewrite_module modules/mod_rewrite.so
- .htaccess
- ====================
- Options -MultiViews
- RewriteEngine On
- RewriteBase /
- # test.php pypass url rewrite. Remove that if not needed
- RewriteCond %{REQUEST_URI} !^test.php$
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_URI} !(\.png|\.jpg|\.gif|\.jpeg|\.bmp\.css\.js)$
- RewriteRule ^(.+)$ index.php?url=$1 [QSA,L]
- =====================
- index.php
- <?php
- if (isset($_GET['url'])) {
- echo $_GET['url']
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement