3
Contributors
5
Replies
18
Views
2 Years
Discussion Span
Last Post by edbr
0

that does not work....

I typed in www.example.com/blog/32 which is supposed to redirect to www.example.com/blog/viewposts.php?id=32 and i get a 404 error.

0

not good with these but should that not be

    RewriteRule ^blog/([a-zA-Z0-9]+)$ /viewposts.php?id=$1 [L]
0

Maybe i am missing something here.....i have tried both versions...neither work. The page i am trying to fix up is:

http://www.tinkerplayground.com/blog

if you click any link on a blog title....thats what i am trying to change..so it reads viewposts.php/32....and not viewposts.php?id=32

I manually typed in both http://www.tinkerplayground.com/blog/32 and http://www.tinkerplayground.com/blog/viewposts.php/32 and neither work

the .htaccess is in the blog root which is /blog/

what am i missing here? my site is hosted with host gator and they have mod-rewrite enabled.

0

RewriteEngine On
RewriteRule ^blog/([^/]*)$ /?id=$1 [L] then i think

Edited by edbr

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.