File not found (htaccess issue?)
-
Hi there,
I have a WP site up and running.
I recently moved the WP site from public_html to subdirectory public_html/cpa/ and updated the public_html/.htaccess file as shown below to direct traffic to the subdirectory. That seemed to work fine.I have recently added a new landing-page with its own CSS (style_lp.css) and set of images in a new folder (images_lp). When I navigate to the new page, the text is displayed but the CSS, images and flash are not displayed.
If I type the link to a gif for this new page (in the new images_lp dir) directly in the address bar, I get a 404.
If I type in the URL to a gif that existed previously (in images dir) in the address bar, it displays fine.Can anyone tell me why new content and files are not being recognised and found??
Any help is much appreciated.
Thx
danAnd now the htaccess content
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName copyrightprotection.com# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /cpa/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /cpa/index.php [L]
</IfModule>
# END WordPress# Change yourdomain.com to be your main domain.
RewriteCond %{HTTP_HOST} ^(www.)?copyrightprotection.com$# Change ‘subfolder’ to be the folder you will use for your main domain.
RewriteCond %{REQUEST_URI} !^/cpa/# Change ‘subfolder’ to be the folder you will use for your main domain.
RewriteRule ^(.*)$ /cpa/$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.)?copyrightprotection.com$
RewriteRule ^(/)?$ cpa/index.php [L]
- The topic ‘File not found (htaccess issue?)’ is closed to new replies.