Redirect 301 Problem : Trying to redirect absolute urls to new CI site. |
[eluser]opel[/eluser]
Our SEO guy has given me about 30 absolute URLs that they say need to be pointed to pages in our new CI enabled site. I tried adding them to the .htaccess file as usual but they don't seem to be working with CI routing functionality. Can anyone help as our SEO guy is freaking out about google rankings... This is what I have : Code: redirect 301 http://www.work-interactive.com/hosted/dadi/gallery/?next=31 http://www.work-interactive.com/sectors/ I am hoping the 301 kicks in prior to the CI doing its routing. I have an alteration on my router that redirects to a catch all message which works so when I run tests still. From that I know that CI is still working but not my 301 redirects ?
[eluser]garymardell[/eluser]
From what i can tell you should not have the http:///wwww.<domain>.com part in the first section of the redirect rule. <code> redirect 301 /hosted/dadi/gallery/?next=31 http://www.work-interactive.com/sectors/ </code>
[eluser]Gordaen[/eluser]
I believe you'll have to do a rewrite rather than a redirect since there is a query string.
[eluser]Colin Williams[/eluser]
Code: RewriteEngine on
[eluser]opel[/eluser]
I tried the rewrite rule above but it didn't work it just kept kicking in with my default error page. I have this in my routes : Code: /** project specific **/ And added a MY_Router.php file with the following code. Code: ///lines above are standard router, below is custom bit Am I write in thinking that the htaccess should take effect prior to any of the CI stuff being actioned ?
[eluser]opel[/eluser]
Finally got it working with Redirect 301 /webpages/joinus.htm http://www.work-interactive.com/page/abo...nteractive Cheers
[eluser]Thorpe Obazee[/eluser]
Isn't that what Colin and garymardell posted already? |
Welcome Guest, Not a member yet? Register Sign In |