Posts Tagged ‘apache’
Redirecting a subdomain to script with .htaccess
Tuesday, July 14, 2009 23:50 3 CommentsI recently had to work with .htaccess to redirect user to their homepage based on subdomain. The requirement was simple and is seen here and there and ofcourse everywhere now a days in different social networks. The requirement was redirecting http://username.domain.tld to http://domain.tld/user.php?u=username. This is just an example (Not similar to url I used). So [...]





