NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Peter_K
Dec 04, 2011Aspirant
Wordpress: enabling Permalinks causes 403 error
I am trying to get the "WP Super Cache" working.
In order to do that I have to enable permalinks, but as soon as I do that I get a 403-error when accessing the site.
Enabling permalinks an .htaccess file is created in /webroot/wordpress
The only way to get the main page operating again is to out comment (with #) the "ReWriteEngine On" command.
As far as I found out so far (as a complete new-bee) is that this means mod_rewrite is not running.
When i try to load this module in the httpd.conf file, it says that this is already built-in.
Now after learning about Apache for several hours, I am out of ideas to get this working. Does anyone have any ideas here?
PS:
I am just trying to set things up for the first time.
The URL is: http://peterkooiman.dyndns-at-work.com/wordpress/
Cause of this trouble only the main page is accessible.
In order to do that I have to enable permalinks, but as soon as I do that I get a 403-error when accessing the site.
Enabling permalinks an .htaccess file is created in /webroot/wordpress
The only way to get the main page operating again is to out comment (with #) the "ReWriteEngine On" command.
As far as I found out so far (as a complete new-bee) is that this means mod_rewrite is not running.
When i try to load this module in the httpd.conf file, it says that this is already built-in.
Now after learning about Apache for several hours, I am out of ideas to get this working. Does anyone have any ideas here?
PS:
I am just trying to set things up for the first time.
The URL is: http://peterkooiman.dyndns-at-work.com/wordpress/
Cause of this trouble only the main page is accessible.
10 Replies
Replies have been turned off for this discussion
- WhoCares_MentorFirst off, check the spelling. It's "RewriteEngine On", no "ReWriteEngine On" - Apache can be picky there at times. Also make sure the "FollowSymLinks" is enabled for the location of your blog, maybe by adding a "Options +FollowSymLinks to the top of your .htaccess file.
-Stefan - Peter_KAspirantYou are right, the command is "RewriteEngine On" as you wrote. The .htaccess file is generated automatically everytime i touch Permalinks under Settings in the Wordpress dashboard.
I tried the "Options +FollowSymLinks". And also with the +SymLinksIfOwnerMatch added.
In fact I followed the advice from this site: http://perfectionlabstips.wordpress.com/2008/12/22/fixing-issue-with-lack-of-apache-followsymlinks-or-symlinksifownermatch-option-declarations/
I am wondering why I get the 403 error not anymore when I delete the "RewriteEngine On" demand.
Wouldn't that mean the mod_rewrite isn't available? - WhoCares_MentorNo. As Apache tells you, mod_rewrite is compiled in on ReadyNAS boxes, so there's no way it could not be available ;)
-Stefan - DashuAspirantI'm also stuck with this error. Any progress?
- WhoCares_MentorThe only thing that I could think of right now (without having tested it on the ReadyNAS) is to add an "AllowOverride All" to the Location statement of the Wordpress installation.
-Stefan - dthrevanAspirantI'm having the exact same issue...
- DashuAspirantI still have this problem. Anybody care to help troubleshoot?
- brins0AspirantThis was driving me mad, but I've found something that works for me for a similar problem:
Reference (In German): http://www.get-the-solution.net/index-blog-1-14-79-Netgear+ReadyNAS+-+RewriteRules+einrichten.html
I added this to the top of my custom conf file in /etc/frontview/apache/addons/
Alias /www /c/www
<Location />
Options Indexes FollowSymLinks SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Location>
Combined with my rewrite rules (for a directory navigator)RewriteEngine On
RewriteCond %{REQUEST_URI} !=/index.php
RewriteRule /$ /index.php
Hope this helps someone out! - dthrevanAspirantCan someone please help me with this as these 403 errors on wordpress permalinks are driving me insane!
Please confirm WHAT exactly goes in place of the 'www' ?
Is it the network share or the domain?
For example wordpress is on my network share called 'website'. Wordpress is in a sub directory called 'test' here is the code i added to the /etc/frontview/apache/httpd.conf file:
Alias /website/test /c/website/test
<Location "/website/test">
Options Indexes FollowSymLinks SymLinksIfOwnerMatch
Order allow,deny
Allow from all
</Location>
Is this correct as it doesn't seem to work. - LygerAspirantI hope that can help:
*Configure Apache for multiple virtual hosts: http://liewdaryl.wordpress.com/2012/05/24/configuring-apache2-on-readynas-ultra-2-for-multiple-virtual-hosts/
*Enabling .htaccess: http://liewdaryl.wordpress.com/2012/05/27/enabling-htaccess-on-readynas-ultra-2/
*and sphardy post here: http://www.readynas.com/forum/viewtopic.php?f=36&t=61282#p343626
Or "easy way" - addon from readynasXtras here: http://readynasxtras.com/readynas-x86-add-ons/wordpress-x86
(PHP 5.3, MySqlOn, PhpMyAdmin 2.5 for create and manage DB and subdomen - needed.)
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!