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

#1
[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?

#2
[eluser]phpserver[/eluser]
A simpler method.Open wp-config.php and add this two lines.

Code:
define('WP_HOME','http://example.com/blog');

define('WP_SITEURL','http://example.com/blog');

Then your .htaccess.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


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