Support » Installing WordPress » local Windows / XAMPP path problems

  • chzumbrunnen

    (@chzumbrunnen)


    I have all my local development webs in D:/web
    XAMPP itself is installed in D:\xampp

    It seems to work fine, but for some webs, I have problems with the permalinks.

    In the httpd.conf (D:\xampp\apache\conf\httpd.conf) I defined an Alias like so:

    DocumentRoot “D:/xampp/htdocs”

    Alias /web “D:/web”
    <Directory “D:/web”>
    Options All Indexes FollowSymLinks MultiViews
    Order allow,deny
    Allow from all
    </Directory>

    the .htdocs file that WordPress generates when I change the permalink structure is like that:

    #AddHandler php5-fastcgi .php .php5

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

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

    # END WordPress

    And I tried all possible combinations, restarted Appache eacht time but nothing seems to work.

    Does anyone know or have any idea what is propably wrong?

    If I remove the permalink structure and use the default (http://localhost/web/sveb.chruezundquer.ch/?p=123) it seems to work, but since BuddyPress won’t function like this I need the permalinks like http://localhost/web/sveb.chruezundquer.ch/2011/03/sample-post/

    Any hints highly appreciated.

Viewing 3 replies - 1 through 3 (of 3 total)
  • arkgroup

    (@arkgroup)

    chzumbrunnen,

    the .htdocs file that WordPress generates when I change the permalink structure is like that:

    You mean .htaccess probably. It should be .htaccess in wordpress folder.

    Samuel B

    (@samboll)

    also look in the httpd.conf file and look for
    #LoadModule rewrite_module modules/mod_rewrite.so
    be sure the # is removed to look like
    LoadModule rewrite_module modules/mod_rewrite.so

    Thread Starter chzumbrunnen

    (@chzumbrunnen)

    @arkgroup: yes, of course I meant the .htaccess file, sorry for that and thanks for the hint.
    @samuel B: I just checked: LoadModule rewrite_module modules/mod_rewrite.so is uncommented.

    Maybe I have to change someting in this part of the httpd.conf?:

    <Directory />
        Options FollowSymLinks
        AllowOverride None
        Order deny,allow
        Deny from all
    </Directory>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘local Windows / XAMPP path problems’ is closed to new replies.