lucy24 - 1:16 pm on Jul 26, 2013 (gmt 0)
RewriteRule test-page/about$ index.php?page=(about) [L]
#1 If you're going to put literal text in a target, you don't need to capture anything anyway
#2 and far more lethally: You've got the parentheses in the wrong place. You can only capture from the pattern. Any parentheses in the target will come through as literal parentheses, meaning you're redirecting yourself to a page with query
when I hover over link at testing page,the link doesn't change
"What we have here is a failure to communicate" :)
You're looking in the wrong place. But I can't give details because not all browsers are alike. In the two browsers I've used most recently: If I hover over any link, the URL for that link will show up along the bottom of my browser window. This is probably the most common way to show an URL, but just watch. Some browser will do it differently.
it is stil localhost/testing/index.php?page=about
Now, wait. Your link isn't supposed to say that anyway. It's supposed to say /testing/about That is, your links should point directly to the URL you want people to see and use. The redirect is only for insurance, in case someone types in the wrong URL.
The result on my browser address bar shows error:
Yes, I kinda thought it would do that. Leave off the "localhost" element in the target, and start with the slash. On your live site, redirect targets should begin with
but on MAMP/WAMP they can't. Well, technically they could say
but there's no reason to do that. (1337? Really? Mine's 8888.)