![]() |
Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Redirect 301 Problem : Trying to redirect absolute urls to new CI site. (/showthread.php?tid=19261) |
Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-02-2009 [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 ? Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-02-2009 [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> Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-02-2009 [eluser]Gordaen[/eluser] I believe you'll have to do a rewrite rather than a redirect since there is a query string. Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-02-2009 [eluser]Colin Williams[/eluser] Code: RewriteEngine on Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-03-2009 [eluser]opel[/eluser] Thanks guys I'll try it Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-03-2009 [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 ? Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-09-2009 [eluser]opel[/eluser] Finally got it working with Redirect 301 /webpages/joinus.htm http://www.work-interactive.com/page/about-work-interactive Cheers Redirect 301 Problem : Trying to redirect absolute urls to new CI site. - El Forum - 06-09-2009 [eluser]Thorpe Obazee[/eluser] Isn't that what Colin and garymardell posted already? |