cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
New

Permalink not working on the main domain.

Hi there,

I currently using the 'business hosting' to host several sites with wordpress installation.

In the main domain -say- A.com I can only use the plain type (www.A.com/?p=123). I can't set the permalink to other type such as /%postname%/ as it will trigger an Internal Server Error.

In the other hand, I also use the hosting for B.com and C.com and the wordpress permalink is working fine. 

I put each of the site in separate folders under the /public_html/ folder ie. /A.com/ ; /B.com/ and /C.com/

 

my htaccess at root ( /public_html/ ) is

 

# .htaccess main domain to subfolder redirect
# Copy and paste the following code into the .htaccess file
# in the public_html folder of your hosting account
# make the changes to the file according to the instructions.

# Do not change this line.
RewriteEngine on

# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?A.com$

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/A.com/

# Don't change this line.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Change 'subfolder' to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /A.com/$1


# Change yourdomain.com to be your main domain again.
# Change 'subfolder' to be the folder you will use for your main domain
# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?A.com$
RewriteRule ^(/)?$ A.com/index.php [L]

#AllowOverride All

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress

 

-------

thank you