wpt394 Posted February 28, 2008 Share Posted February 28, 2008 So I know this may not be in php exactly, but I think it's pretty close.... I have a website on which I've been using the Rewrite Rule in my .htaccess file to make dynamic urls appear static. For example, at first I would take a url that looked like: http://www.example.com?variable=two%20words (call this Version 1) and transform it to this: http://www.example.com/two%20words (call this Version 2) But....now I've switched the spaces (%20) to dashes (-) so the urls look like http://www.example.com/two-words (Version 3) The question is, how do I use a 301 redirect to make the version 2 urls redirect to the version 3 urls? Thanks for any help. Quote Link to comment Share on other sites More sharing options...
sKunKbad Posted March 3, 2008 Share Posted March 3, 2008 Unless I'm wrong, I'm pretty certain that you won't be able to do this. If you find a solution, I am very curious to see what it is. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.