![]() |
.htaccess redirection - 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: .htaccess redirection (/showthread.php?tid=30000) |
.htaccess redirection - El Forum - 04-29-2010 [eluser]The Spider[/eluser] Hi, I want to install a wordpress in to a blog folder. That means http://mydomain.com/blog. Now, what I want is once the user enters http://mydomain.com/ it readily shows the my wordpress blog, without the blog url in the browser. I think this can be done using .htaccess file. Can u please give me the code to do that? My existing .htaccess file looks like this: RewriteEngine on RewriteCond $1 !^(index\.php|subdomains|user_guide|includes|uploads|images|templates|js|css|plugin.php|tester.php|fckeditor) RewriteRule ^(.*)$ index.php/$1 What more do I have to do? .htaccess redirection - El Forum - 04-29-2010 [eluser]phpserver[/eluser] A simpler method.Open wp-config.php and add this two lines. Code: define('WP_HOME','http://example.com/blog'); Then your .htaccess. |