Website .htaccess file for Wordpress sub folder

Website .htaccess file for Wordpress sub folder - .htaccess files are extremely useful in many cases for users who either do not have root permissions or for users who simply aren't comfortable in making changes in their web server's configuration file. Trying to debug .htaccess not working isn't always the easiest thing to do, however, hopefully by checking the discuss below mentioned about htaccess, wordpress, , , .htaccess common problems as well as the troubleshooting tips, you'll have a better grasp on what you may have to modify to get your .htaccess file running smoothly.Problem :


I developed a Flash website for a client and added the following .htaccess file in the root directory and the non-www to www redirect works perfectly.



RewriteEngine On
RewriteCond %HTTP_HOST ^website.com [NC]
RewriteRule ^(.*)$ http://www.website.com/$1 [L,R=301]


I was also asked to add a Wordpress blog so I put it in a new directory folder (as opposed to a sub domain) with so the URL is www.website.com/blog



Does Google now see the main site and blog as two different websites? Do I need to link them together using another .htaccess file in the Wordpress Root so Google automatically crawls the whole domain? Any help appreciated....


Solution :

They will not be seen as two separate websites. They will be seen as one. If you want them to be seen as two separate websites you'll need to put them on two different domains.



You don't have to do anything special for Google to find them as they will follow links to your main site and blog and then crawl them and index them from there. However, you can help the search engines along by using an XML sitemap to tell them where your pages are.


Additionally, if you would like to do some further testing, give the htaccess tester tool a try. It allows you to specify a certain URL as well as the rules you would like to include and then shows which rules were tested, which ones met the criteria, and which ones were executed.

Comments

Popular posts from this blog

Rewrite in Mediawiki, remove index.php, .htaccess

.htaccess rewrite wildcard folder paths from host

Using .htaccess to set a cookie and 301 redirect