Trying to create tiny urls, getting redirect loop.

Posted by Gary on Stack Overflow See other posts from Stack Overflow or by Gary
Published on 2010-04-12T02:53:46Z Indexed on 2010/04/12 3:13 UTC
Read the original article Hit count: 409

Filed under:
|
|
|

I'm trying to create tiny urls like this:

site.com/abc123

goes to:

site.com/index.php?token=abc123

but I keep getting redirect loops no matter what I try, or it tries to redirect to index.php?token=index.php..

Current .htaccess is:

Options +FollowSymLinks
Options -MultiViews
RewriteEngine On
RewriteRule ^([^/]*)$ /index.php?token=$1 [L]

© Stack Overflow or respective owner

Related posts about php

Related posts about apache