Thursday 15 January 2015

Want to run wordpress in a subdirectory and keep my main site separate in the root -


There is an ecommerce website in my root directory and want to transfer my blog to sub directory I have successfully used this Successfully made the move but when I try to go to the blog home page it redirects to my ecommerce site home page.

eCommerce site - blog space - Http://www.heavytshirt.com/blog

Blog .htaccess file in the directory, this looks like this: < / P>

  RewriteBase on RewriteEngine / # BEGIN WordPress & lt; IfModule mod_rewrite.c & gt; On RewriteBase / blog / RewriteRule ^ index \ .php $ RewriteEngine - [L] RewriteCond% {REQUEST_FILENAME} -f RewriteCond% {REQUEST_FILENAME} -d RewriteRule !. /blog/index.php [L] & lt; / IfModule & gt; # And wordpress   

and the .htaccess file in the root directory looks like this:

  directory index / mm5 / merent.mvc? Screen = SFTEERIENGYN on RewriteRule ^ mm5 / admin.mvc? - [L] RewriteCond% {REQUEST_FILENAME} -s RewriteRule ^ product /([^/.]+) html $ /mm5/merchant.mvc?Screen=PROD&Product_code=$1 [L] RewriteCond% {REQUEST_FILENAME}.! -s RewriteRule ^ range /([^/.]+). Html $ / mm5/merchant.mvc?Screen=CTGY&Category_code=$1 [L] RewriteCond% {REQUEST_FILENAME}! -s RewriteRule ^ Product / ([^ /] +) / ([^ /.] +) html $ /mm5/merchant.mvc?Screen=PROD&Category_code=$1&Product_code=$2 [L] RewriteCond% {REQUEST_FILENAME}! -s RewriteRule ^ ([^ /.]+).html$ /mm5/merchant.mvc?Screen=$1 [L] ### end - Miva Merchant available on RewriteCond% + {HTTP_HOST inserted FollowSymlinks RewriteEngine} heavytshirt.com [NC] RewriteRule ^ (. *) $ Http://www.heavytshirt.com/$1 [r = 301, nc] # BEGIN WordPress & lt; IfModule mod_rewrite.c & gt; On RewriteBase / blog / RewriteRule ^ index \ .php $ RewriteEngine - [L] RewriteCond% {REQUEST_FILENAME} -f RewriteCond% {REQUEST_FILENAME} -d RewriteRule !. /blog/index.php [L] & lt; / IfModule & gt; # And wordpress   

Currently I can type in a later sub directory and get a post like this: http://www.heavytshirt.com/ Blog / category / Summershirts /

When someone types in http://www.heavytshirt.com/blog and is not affected, then on the blog home page What can I do to come to the main site at www.heavytshirt.com

< P> I do not see your apache configuration, because I believe Is that it can be configured easily in WordPress.

Go to your WordPress Admin Panel and go to Settings / General Settings .

Change the values ​​of the present and accordingly. For more information, read.

No comments:

Post a Comment