com web/people: shorten profile URL: .htaccess

From: Date: Thu, 03 Oct 2013 13:17:43 +0000
Subject: com web/people: shorten profile URL: .htaccess
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-16770@lists.php.net to get a copy of this message
Commit: 703a5cbfba0f924c56ff85095f260368435909a0 Author: Dejan Marjanovic <dm@php.net> Thu, 3 Oct 2013 03:10:36 +0200 Committer: Peter Cowburn <petercowburn@gmail.com> Thu, 3 Oct 2013 14:17:43 +0100 Parents: bbed473811f9127b3ba670e7da726c3d892c06f3 Branches: master Link: http://git.php.net/?p=web/people.git;a=commitdiff;h=703a5cbfba0f924c56ff85095f260368435909a0 Log: shorten profile URL Changed paths: A .htaccess Diff: diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..939e99b --- /dev/null +++ b/.htaccess @@ -0,0 +1,5 @@ +RewriteEngine On + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ http://%{HTTP_HOST}/user.php?username=$1 [L,QSA,R=302] \ No newline at end of file

« previous php.webmaster (#16770) next »