View previous topic :: View next topic |
Author |
Message |
billyj -
Joined: 16 Jan 2007 Posts: 1 Location: Florida, USA
|
Posted: Tue Jan 16, 2007 3:53 am Post subject: URL rewriting for WordPress |
|
|
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 |
|
|
hyperial -
Joined: 22 Aug 2007 Posts: 23
|
Posted: Thu Aug 23, 2007 12:39 am Post subject: |
|
|
This helped me save a lot of time! Thanks! |
|
Back to top |
|
|
seph -
Joined: 25 Apr 2013 Posts: 2
|
Posted: Fri Apr 26, 2013 3:35 am Post subject: |
|
|
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 |
|
|
Lawrence -
Joined: 16 Jan 2003 Posts: 207 Location: Brisbane, AU
|
Posted: Fri Jan 09, 2015 2:09 am Post subject: |
|
|
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 |
|
|
|