I am trying to transfer a new one (created in a Cadinator) to a site from an old domain. Ideally, we want to extend the URL scheme, if the user has an old bookmark, I have received the code to attach the query string with the redirect:
Revive the option + Follow-up written rewritinginngine on rewriteable ^ (. *) Http: //www.new_site.com% {REQUEST_URI} [R = 301, nc]
but our URL structure 'subdirectory' (index Using a controller name in .php), this A typical URL looks like this:
http://website.com/controller/method/param1/param2
I also do the sub-directories How can I set .htaccess for forwarding?
http://website.com/controller/method/param1/param2 http://new_website.com/controller/method/param1/param2
The answer was found! Adding $
at the end of the rewrite rule ^ (. *)
allows you to drag all the directories into redirects. Hope that helps anyone!
No comments:
Post a Comment