Welcome Guest, Not a member yet? Register   Sign In
.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.




Theme © iAndrew 2016 - Forum software by © MyBB