sayedsohail Posted September 12, 2007 Share Posted September 12, 2007 Hi everyone, I just wish to know how to hide long url address ie., http://localhost/braough/sub/list?a&bak?b&cad?mad into just http://localhost, so the user won't see the subdirectories or long path in the url address. Thanks for the help. Quote Link to comment https://forums.phpfreaks.com/topic/69009-how-to-hide-long-url-address/ Share on other sites More sharing options...
ToonMariner Posted September 12, 2007 Share Posted September 12, 2007 http://www.alistapart.com/articles/succeed Quote Link to comment https://forums.phpfreaks.com/topic/69009-how-to-hide-long-url-address/#findComment-346864 Share on other sites More sharing options...
xyn Posted September 12, 2007 Share Posted September 12, 2007 Mod_rewrite. .htaccess # Turn off indexes. Options All -Indexes # rewrite RewriteEngine On RewriteBase / RewriteRule ^/accounts/(.*)/(.*)\.php$ /index.php?dir=members&topic=$1&page_id=$2 [L] Quote Link to comment https://forums.phpfreaks.com/topic/69009-how-to-hide-long-url-address/#findComment-346867 Share on other sites More sharing options...
sayedsohail Posted September 12, 2007 Author Share Posted September 12, 2007 can please someone explain what this lines will do, as i have to got 20 or so different webpages and how do i fit this pages in this: RewriteBase / RewriteRule ^/accounts/(.*)/(.*)\.php$ /index.php?dir=members&topic=$1&page_id=$2 [L] Quote Link to comment https://forums.phpfreaks.com/topic/69009-how-to-hide-long-url-address/#findComment-346902 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.