Jump to content

quicklink with either php or .htaccess


justcraig

Recommended Posts

You new mod_rewrite

[code]RewriteEngine on
RewriteRule ^/(.*)$ /index.php?username=$1 [L][/code]

If you need more control of the rewrite rule, then use [metacharacter] class to limit/restrict the matching (IE: ([a-z0-9_].+)) instead of (.*). But that depends on your username allowed characters!

printf


Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.