Custom Permalinks causing redirect to Xampp web root
-
Hi,
I’ve been trying to set up a wordpress site (2.9.1) locally with XAMPP for Windows Version 1.7.0 on Windows 7 64bit. The problem is that after I messed with my permalink structure, clicking on categories now directs to my xampp web root (http://localhost/xampp/). I am *almost* sure that links were working before I changed the permalinks. Here’s some info to eliminate some of the possible problems:
- Directory is http://localhost/xampp/wp/wptest. The windows directory structure goes like this: C:/xampp/htdocs/xampp/wp/wptest. The xampp directories are how it comes out of the box, I didn’t change it to use a virtual host or anything like that.
- All wp files are still in default directory
- WordPress address and blog address are set correctly to http://localhost/xampp/wp/wptest (I even tried trailing / ‘s)
- Changed permalinks to /%year%/%category%/%postname%/
- Links now redirect to http://localhost/xampp/
- Mod rewrite is enabled/loaded according to httpd.conf and phpinfo()
- As far as I can tell FollowSymLinks is active for C:/xampp/htdocs. I also tried adding another entry for the wp directory specifically and tried several different variations.
In the httpd.conf it already has:
<Directory /> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order deny,allow Deny from all </Directory>
AND
<Directory "C:/xampp/htdocs"> Options Indexes FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory>
I also tried:
<Directory "C:/xampp/htdocs"> Options Indexes +FollowSymLinks Includes ExecCGI AllowOverride All Order allow,deny Allow from all </Directory>
And, I tried adding another entry using both of the above for directories C:/xampp/htdocs/xampp/wp/wptest, C:/xampp/htdocs/xampp, http://localhost/xampp/wp/wptest, a few other variations.
- I can’t chmod and it shouldn’t even be applicable because on windows (though the site will eventually probably be on a linux server when it goes live)
- WP is automagically updating my htaccess file. Here is what it looks like currently with the custom structure of /%year%/%category%/%postname%/
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> # BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /xampp/wp/wptest/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /xampp/wp/wptest/index.php [L] </IfModule> # END WordPress
- The default wp permalinks work, but none of the custom structures work including the 3 that you can select without inputting tags manually
- xampp works well for me in general for other things, I’ve been using it with vBulletin test sites for close to a year.
Where do I go from here to solve this? I hope I’ve included the necessary info. If anything else is needed, just let me know where to check because I don’t know much about this apache and htaccess stuff.
Thanks.
PS. I’m new to WP but I’m really liking it and everything I’ve read so far. I’m hoping to get a lot more into it especially for use as a CMS.
- The topic ‘Custom Permalinks causing redirect to Xampp web root’ is closed to new replies.