View Full Version : how to hide URL
little rax
02-09-2008, 07:04 PM
I am not sure whether this topic is related to php , java or html, that’s why I am posting this in all section ,kindly help me out
How can I convert my url
http://mydomain.com/games/front.html
to
http://mydomain.com/games/front or
http://mydomain.com/games/01268
djr33
02-09-2008, 07:19 PM
You can do this using mod_rewrite, which is not part of PHP. Google should have some answers for that. It involves .htaccess.
You could alternatively use .../games?front with php and have your page displayed, if you prefer.
cafewebmaster
02-09-2008, 08:30 PM
Put this in your .htaccess :
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php
little rax
02-10-2008, 09:20 AM
Thanks for answering
let me try it and will get back to you
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.