Forums

subfolder not found (3 posts)

  1. andymason
    Member
    Posted 1 year ago #

    Using localhost WAMP, creating new site get NOT FOUND error.
    The original site is perfect.
    I have .htaccess problems I think. A blank .htaccess gives me the above problem, a normal .htacces and one with this code

    RewriteEngine On
    RewriteBase /wordpress/
    RewriteRule ^index\.php$ - [L]
    
    # uploaded files
    RewriteRule ^([_0-9a-zA-Z-]+/)?files/(.+) wp-includes/ms-files.php?file=$2 [L]
    
    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]
    
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ - [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(wp-(content|admin|includes).*) $1 [L]
    RewriteRule  ^[_0-9a-zA-Z-]+/(.*\.php)$ $1 [L]
    RewriteRule . index.php [L]

    blocks me out of my site with another error.

    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Any ideas what might be wrong here?
    Thanks
    Andy

  2. You probably didn't set up WAMP with mod_rewrite and AllowOverride correctly. Basically it's not reading .htaccess right

  3. Andrea_r
    team pirate
    Posted 1 year ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags