Forums

Mirror To Localhost - no CSS (1 post)

  1. dbaltozer
    Member
    Posted 9 months ago #

    Hi All,
    I'm setting up an already functioning WP on my localhost. I followed the directions here: http://codex.wordpress.org/Running_a_Development_Copy_of_WordPress

    What is happening seem to be the HTACCESS is not rewritting as expected. I get some unformatted items on thepage when I go to it. I also get a 404 error inside the homepage.

    I have the site in the c:\xampp\htdocs\gbs folder.
    I looked all over at various versions fo HTACCESS but I can see in the server logs that the CSS files and includes are not being found.

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

    In the server error log I get these:
    [Sat Aug 20 14:48:58 2011] [error] [client 127.0.0.1] script 'C:/xampp/htdocs/gbs/wp-cron.php' not found or unable to stat
    [Sat Aug 20 14:48:58 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/gbs/wp-includes, referer: http://localhost/gbs/discounts/
    [Sat Aug 20 14:48:58 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/gbs/wp-content, referer: http://localhost/gbs/discounts/
    [Sat Aug 20 14:48:58 2011] [error] [client 127.0.0.1] File does not exist: C:/xampp/htdocs/gbs/wp-includes, referer:...........and it ocntinues for each call to any of those files

    the wp-includes directory is at gbs\discounts\wp-includes.
    In the gbs directory the index.php redirects the user to the discounts folder.

    I tried every variation in HTACCESS and the file request are always missing the "discounts" directory. Such as something like this:
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /discounts/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /discounts/index.php [L]
    </IfModule>
    # END WordPress

    It keeps asking for:C:/xampp/htdocs/gbs/wp-includes
    When it reall need: C:/xampp/htdocs/gbs/discounts/wp-includes

    Any Ideas?

    Thanks.

Reply

You must log in to post.

About this Topic