Jump to content
View in the app

A better way to browse. Learn more.

The Uniform Server Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Mod_rewrite Wordpress Help Please

Featured Replies

I'm using Uniform Server 3.5-Apollo on WinXPpro. Doing a test of Wordpress v2.6.1. Trying to create custom permalinks, which according to Wordpress codex http://codex.wordpress.org/Using_Permalinks requires mod_rewrite enabled. When I change the permalink from default in WP I get 403 error message

You don't have permission to access /wordpress/wp-admin/options-permalink.php on this server.

Apache/2.0.59 (Win32) DAV/2 PHP/5.2.3 Server at localhost Port 80

and I can't login into the admin panel, also an .htaccess file is created as follows:

 

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

# END WordPress

This error is in the Apache log file:

[client 127.0.0.1] Options FollowSymLinks or SymLinksIfOwnerMatch is off which implies that RewriteRule directive is forbidden: W:/www/wordpress/wp-admin/options-permalink.php, referer: http://localhost/wordpress/wp-admin/options-permalink.php

As noted in previous posts on this issue I changed the .htaccess file to this:

# BEGIN WordPress
Options +FollowSymLinks
#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

# END WordPress

I'm then able to log back in to the WP admin panel. However, when I change the permalink setting and save I get the 403 error again. Also .htaccess has been rewritten with Options +FollowSymLinks removed.

 

Any suggestions on correcting this problem?

  • Author

Changed .htaccess to read only seems to have corrected the problem.

 

Thanks

If you change permalink settings every thing between # BEGIN WordPress and # END WordPress are rewritten by Wordpress. Hence place Options +FollowSymLinks outside this block.

 

Options +FollowSymLinks

# BEGIN WordPress

#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

# END WordPress

I noticed in your last post you made the file read only. That’s OK Wordpress only needs to set the file up once unless you want to change the settings again.

 

All the best

Ric. :blink:

  • Author

That's even better since I haven't decided on a permalink format yet!

 

Thanks for your reply Ric.

 

Frank

 

 

If you change permalink settings every thing between # BEGIN WordPress and # END WordPress are rewritten by Wordpress. Hence place Options +FollowSymLinks outside this block.

 

Options +FollowSymLinks

# BEGIN WordPress

#Options -Indexes
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>

# END WordPress

I noticed in your last post you made the file read only. That’s OK Wordpress only needs to set the file up once unless you want to change the settings again.

 

All the best

Ric. :blink:

  • 3 years later...

Wordpress 3.1 and Uniserver 7.0

 

If I select to mod rewrite, it will generate the .htaccess code according to Wordprss specifications - but it breaks the site. Using the "Options +FollowSymLinks" has no impact.

 

.htaccess:

 

-------------------------------------------------------

 

Options +FollowSymLinks

 

# BEGIN WordPress

 

#Options -Indexes

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /wordpress/

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /wordpress/index.php [L]

</IfModule>

 

# END WordPress

 

------------------------------------------------------

 

 

Caps

  • 3 months later...

This is an old topic but I wanted to bring it up just for future reference.

I noted that in your rewriting rules you are trying to point to your /wordpress folder. That tells me that your wordpress installation in under example.com/wordpress folder.

 

Enable Permlinks "/%postname%" without quotes

 

Edit your .htaccess as follow

 

RewriteEngine On

RewriteBase /

RewriteRule ^index\.php$ - [L]

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

 

Copy your wp-config.php and index.php to your root folder. (example.com/)

 

Edit index.php

 

/** Loads the WordPress Environment and Template */

require('./wordpress/wp-blog-header.php');

 

 

Hope this helps

<p class="bbc_center"><span style="font-size:12px;"><strong>Yoni</strong></span></p>

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.