Forum Moderators: phranque
i want to redirect my old site to the new site & change the separator sign also for example:
oldsite.com/search/key-word
to
newsite.com/key+word
currently i'm put htaccess file on the oldsite.com/search
redirect 301 /search/ http://newsite.com/
Thanks
You'll use patten matching to match the input URL, and the target URL will contain the values previous stored in those backreferences, along with the [R=301] flag.
You'll therefore be using a redirect, not a rewrite.
For this reason, hyphens, underscores, or other unreserved characters would be a better choice.
See RFC2396 - Uniform Resource Identifiers (URI): Generic Syntax [faqs.org].
Jim