htaccess shared 1and1.com hosting - strange problem

Discussion in 'Apache' started by imvain2, Mar 28, 2011.

  1. #1
    I have hosting with 1and.com shared hosting. Htaccess does work on the site, except....

    I have the main domain's destination set to the root, where htaccess works. I have another domain's destination set to a subfolder (not via redirect). I have a separate htacess file in that subfolder that doesn't work.

    I even copied and pasted the code directly from the working htaccess but it still didn't work. I believe it is the way 1and1.com setups up the domains to point to subfolders.

    The below code that is in the htaccess file that doesn't work.

    RewriteEngine On
    RewriteRule ^page/([0-9]+)/(.*) page.php?page_id=$1 [nc]

    Any help is appreciated.
     
    imvain2, Mar 28, 2011 IP