hi all,
Ive run into a bit of a problem with running wordpress in a sub folder.
I have one install of wordpress in the main root of the site and then i have new install in a sub folder which is a different website.
ive used an addon domain to point to the sub folder. so the idea is that if you go to http://www.domain1.com you get the first website and if you go to http://www.domain2.com you get the other website.
for some reason if i try to update the permalinks on site 2 in the sub folder using wordpress it blanks the htaccess file. i want to change it so that the permalink structure is category/postname.
ive tried adding this to the htaccess file in the subfolder for site2:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
this allow me to navigate the site fine using domain2 but for some reason i cant get it to use the permalin structure i am stuck with domain2.com/?page_id=17
how can i get this to work so i hav the names of the posts etc?
is it because i have a htaccess file in the root for site 1?
basically site1 has a htaccess file in the root and then there is a htaccess file in the subfolder for site2 i think the htaccess file in the main root is overriding the site2 htaccess file is there anything i can do?
this is the htaccess file code in the root site:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.domain\.org
RewriteRule (.*) http://www.domain.org/$1 [R=301,L]
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
ErrorDocument 404 /index.php?error=404
# END WordPress