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. 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 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] 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] 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
Archived
This topic is now archived and is closed to further replies.