I am currently moving old static pages to our new dynamic URLs (I know this isn't ideal for SEO.) Can someone explain to me where the old URL goes and where the new URL goes in a rewrite code? Much appreciated for your help in advance!
g1smd
5:57 pm on May 3, 2010 (gmt 0)
Path-part of old URL in the pattern on the left.
Full URL of new URL in the target on the right.
Use [R=301,L] flags for any redirect using RewriteRule code.
Needs a preceding RewriteCond looking at QUERY_STRING if the old URL has any query string data.
There's literally tens of thousands of prior threads using these ideas.
jellosello
6:47 pm on May 3, 2010 (gmt 0)
Thank you for your response. I'm very new working with redirects and don't have any programming or back end experience so this is helpful.
jdMorgan
1:22 pm on May 4, 2010 (gmt 0)
Please see the resources cited in our Apache Forum Charter [webmasterworld.com].
Studying them will help you to understand mod_rewrite and to avoid potentially-serious errors that can break your site (if you are lucky), or which can slowly and quietly destroy your search engine rankings (if you are not so lucky) and put you out of business.
This is server config code, and must not be "guessed at."