Hello does anyone know how to do this using mod_rewrite
www.domain.com/1234 (the 1234 is a random number)
into
www.domain.com?u=1234 which is accessed as normal.
Is there an easier way?
Lewis
| SitePoint Sponsor |
Hello does anyone know how to do this using mod_rewrite
www.domain.com/1234 (the 1234 is a random number)
into
www.domain.com?u=1234 which is accessed as normal.
Is there an easier way?
Lewis
using following code in .htaccess:
Code:Options -Indexes Options +FollowSymlinks RewriteEngine on #RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-l RewriteRule ^([0-9]+)$ index.php?u=$1 [QSA,L]
I've tried that but it ain't working
What I want is
if a user types in www.domain.com/1234
i want PHP to read it as domain.com?u=1234.
What am I doing wrong.
Thanks for the help.
Lewis
lewisb87,
You will get more help here
http://www.sitepoint.com/forums/forumdisplay.php?f=199
Hi
How would I test this out to see if it's working?
Thanks
Lewis
Bookmarks