301 redirect www.mywebsite.com to www.mywebsite.com/defaultcontroller/ |
[eluser]setgreen[/eluser]
Hi all, I've been using Code Igniter for one of my website for some time now but something has been bothering me lately. I would like to 301 redirect http://www.mywebsite/mydefaultcontroller to http://www.mywebsite.com/ Is there a way to do that using mod_rewite in the .htaccess file without messing things up (maybe I should look into the DNS stuff to solve this problem?)? My .htaccess file contains the following for now : Code: RewriteCond $1 !^(index\.php|robots\.txt) The above rewriting rule is the usual way to get rid of the 'index.php' part. Could someone enlighten me about that? |
Messages In This Thread |
301 redirect www.mywebsite.com to www.mywebsite.com/defaultcontroller/ - by El Forum - 04-19-2010, 03:07 AM
301 redirect www.mywebsite.com to www.mywebsite.com/defaultcontroller/ - by El Forum - 04-19-2010, 03:36 AM
301 redirect www.mywebsite.com to www.mywebsite.com/defaultcontroller/ - by El Forum - 04-19-2010, 03:39 AM
301 redirect www.mywebsite.com to www.mywebsite.com/defaultcontroller/ - by El Forum - 04-19-2010, 03:59 AM
301 redirect www.mywebsite.com to www.mywebsite.com/defaultcontroller/ - by El Forum - 04-19-2010, 04:06 AM
|