RewriteCond in htaccess - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: RewriteCond in htaccess (/showthread.php?tid=9196) |
RewriteCond in htaccess - El Forum - 06-16-2008 [eluser]bapobap[/eluser] Does anyone know where I'm going wrong? Code: RewriteEngine On I basically want everything to redirect to http://domain.com/$ with $ being whatever the request is. So if someone types in domain.net, they get 301'd to domain.com. Or if they request domain.net/lovely/page/ they get 301'd to domain.com/lovely/page. The above code seems to work for the homepage but not anything else. Any ideas?! Thanks! Edit: Removed all but the last [L], same result. |