logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Other Software View previous topic :: View next topic
Reply to topic   Topic: Worpress Permalinks - Apache Server
Author
sonofadoc



Joined: 20 May 2013
Posts: 1
Location: US, Carmel

PostPosted: Tue 21 May '13 1:59    Post subject: Worpress Permalinks - Apache Server Reply with quote

Hi,
I have Apache 2.2 (PHP5)(MySql 5.5) installed on my Win7 machine. It's a custom install without the use of xammp (or mammp) so my web pages live outside the htdocs and Apache folders in a folder called "webpages."

Within webpages is a folder called bigsurwebdesign (a website I'm building in a WordPress framework). Inside this folder is an index.php file that directs the address to the folder WordPress with all the appropriate files and folders for WP. Also, alongside this index.php file is an .htaccess file with the mod_rewrite permissions for Apache.
Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /bigsurwebdesign/wordpress/
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /bigsurwebdesign/wordpress/index.php [L]
</IfModule>
# END WordPress

I also configured the hpptd.conf file removing the # sign and changed AllowOveride to "All" to give Apache permission to redirect urls which looks like this:
Code:
LoadModule rewrite_module modules/mod_rewrite.so

Code:
Directory />
Options FollowSymLinks
AllowOveride All
Order deny,allow
Deny from all

If you know WordPress you will understand I am trying to configure Permalinks to display "Pretty Permalinks" that makes sense to users in the address bar.

The problem I'm having is when I change the permalink structure setting to custom in WP
Code:
http://localhost/wordpress /%category%/%postname%/
it's no longer able to find the URL even though the path in the address bar looks as it should:
Code:
http://localhost/bigsurwebdesign/wordpress/uncategorized/hello-world/

but with the 404 error "Not Found."

I have another instance of WordPress on my host provider server and the custom "Pretty Permalinks" works fine. That's why I think this is a local Apache issue as they probably have their Apache server configured properly to accommodate WordPress.

I have tried configuring the .htaccess file 5 different ways with no results.

Can someone maybe steer me in the right direction. If I was setup for it I'd give you an address where you could look at the my local installation, but I'm not.

Any help, advice, reprimands, rebukes would be appreciated.

sonofadoc
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7325
Location: Germany, Next to Hamburg

PostPosted: Fri 11 Oct '13 17:05    Post subject: Re: Worpress Permalinks - Apache Server Reply with quote

sonofadoc wrote:
Code:
http://localhost/wordpress /%category%/%postname%/
it's no longer able to find the URL even though the path in the address bar looks as it should:
Code:
http://localhost/bigsurwebdesign/wordpress/uncategorized/hello-world/

but with the 404 error "Not Found."


There is white space in the URL
Back to top


Reply to topic   Topic: Worpress Permalinks - Apache Server View previous topic :: View next topic
Post new topic   Forum Index -> Other Software