.htaccess - Virtual Folders -


i'm trying utilise mod_rewrite allowing me use domain.com/d4k1d give same effect domain.com/link.php?link=d4k1d

at moment have in .htaccess although seems give me 404 errors.

rewriteengine on rewriterule /(abcdefghijklmnopqrstuvwxyz[0-9]+)/ link.php?link=$1 

i'm not familiar mod_rewrite etc. don't know go :s.

you need include of letters inside of character class (which can simplified). current rule allows letter followed 1 or more numbers:

rewriteengine on rewriterule /([a-z0-9]+)/ link.php?link=$1 

Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -