URL rewriting for WordPress

 
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting
View previous topic :: View next topic  
Author Message
billyj
-


Joined: 16 Jan 2007
Posts: 1
Location: Florida, USA

PostPosted: Tue Jan 16, 2007 3:53 am    Post subject: URL rewriting for WordPress Reply with quote

I have long been waiting for the URL rewriting on the Abyss webserver.
Once I had v2.4 installed I immediately checked the URL rewriting for WordPress so that I can use the clean URL's instead of still having the index.php in the URL.
It was easy to change and works beautifully!

here is what you have to put into the rewriting rule:

Virtual Path Regular Expression: .
(yes, just a dot)

you will need two Conditions:
REQUEST_FILENAME Is Not File
REQUEST_FILENAME Is Not Directory


and finally

Redirect to: /index.php

Hope this will be of help to somebody,
Enjoy
Back to top View user's profile Send private message Visit poster's website
hyperial
-


Joined: 22 Aug 2007
Posts: 23

PostPosted: Thu Aug 23, 2007 12:39 am    Post subject: Reply with quote

This helped me save a lot of time! Thanks!
Back to top View user's profile Send private message
seph
-


Joined: 25 Apr 2013
Posts: 2

PostPosted: Fri Apr 26, 2013 3:35 am    Post subject: Reply with quote

So far this has worked for me.
Since I'm a noob and I like thorough directions, I am adding more details to these steps for other people to include all options on URL Rewrite Rule page.

At the time of this post, I am using Abyss Web Server X2 v2.8 and WordPress v3.5.1

1. Click "Configure" button for WordPress site in Abyss
2. Click "URL Rewriting" option
3. Click "Add" button to add new rule

Options & Settings for New Rule -
Enable Rule: Checked
Virtual Path Regular Expression: . (use period or dot)
Case Sensitive: Unchecked
Click Add button for Conditions and "OK" button to add each condition
Condition 1 = Variable: REQUEST_FILENAME, Operator: Is not a file
Condition 2 = Variable: REQUEST_FILENAME, Operator: Is not a directory
Apply to subrequests too: Checked
If this rule matches: Perform an internal redirection
Redirect to: /index.php
Append Query String: Unchecked
Escape Redirection Location: Unchecked
Next Action: Continue with the next rule
Click "OK" button and "Restart" Abyss server

Please update these steps in the future if needed.

Good luck!
Back to top View user's profile Send private message
Lawrence
-


Joined: 16 Jan 2003
Posts: 207
Location: Brisbane, AU

PostPosted: Fri Jan 09, 2015 2:09 am    Post subject: Reply with quote

Forgive me for resurrecting this thread...

This rule breaks images with spaces in the URLs. With it enabled, I get a 404 for image%202.jpg, but image_2.jpg works fine. Disable the rule and both URLs function as expected.

Actually, this doesn't work for any content not running through Wordpress either, so links to other parts of the site outside the Wordpress system are also 404.
Back to top View user's profile Send private message Visit poster's website ICQ Number
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> URL Rewriting All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group