• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.htaccess redirection

[eluser]The Spider[/eluser]

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?

A simpler method.Open wp-config.php and add this two lines.



Then your .htaccess.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.