× NETGEAR will be terminating ReadyCLOUD service by July 1st, 2023. For more details click here.
Orbi WiFi 7 RBE973
Reply

Wordpress: enabling Permalinks causes 403 error

Peter_K
Aspirant

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.
Message 1 of 11
WhoCares_
Mentor

Re: Wordpress: enabling Permalinks causes 403 error

First 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
Message 2 of 11
Peter_K
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

You 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?
Message 3 of 11
WhoCares_
Mentor

Re: Wordpress: enabling Permalinks causes 403 error

No. As Apache tells you, mod_rewrite is compiled in on ReadyNAS boxes, so there's no way it could not be available 😉

-Stefan
Message 4 of 11
Dashu
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

I'm also stuck with this error. Any progress?
Message 5 of 11
WhoCares_
Mentor

Re: Wordpress: enabling Permalinks causes 403 error

The 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
Message 6 of 11
dthrevan
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

I'm having the exact same issue...
Message 7 of 11
Dashu
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

I still have this problem. Anybody care to help troubleshoot?
Message 8 of 11
brins0
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

This 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!
Message 9 of 11
dthrevan
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

Can 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.
Message 10 of 11
Lyger
Aspirant

Re: Wordpress: enabling Permalinks causes 403 error

I 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.)
Message 11 of 11
Top Contributors
Discussion stats
  • 10 replies
  • 5289 views
  • 0 kudos
  • 6 in conversation
Announcements