|
|
#1 (permalink) |
|
Registered User
Fresh Surpasser
Joined in Jun 2005
5 posts
Gave thanks: 1
Thanked 0 times
|
Wordpress and Clean Urls/Htacess Help
Hi,
I'm having some trouble getting Wordpress to work with clean urls via my .htacess file. I've done this before with several different hosts, so I'm not sure what the problem is. Currently my site is temporarily here: http://sh100.surpasshosting.com/~sweptawa/ I've changed my WP Permalinks options so as to not include /index.php/ and tried following the steps mentioned here: http://www.surmunity.com/showthread.php?t=22561 I've tried several mod_rewrite rules, none of them working. Any clue what is wrong? Thanks! |
|
|
|
|
|
#3 (permalink) |
|
Race Surpass
Super #1
Joined in Jul 2006
Lives in Oklahoma City, OK
Hosted on sh102
1,176 posts
Gave thanks: 18
Thanked 85 times
|
Well, one thing you will most likely need to do with Wordpress is edit the \wp-includes\vars.php file to force $is_apache to be true in the Server detection section near the bottom:
PHP Code:
After doing that, then Wordpress will modify the .htaccess file how it sees fit. Here's the Wordpress portion of mine: Code:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Mark H.
__________________
|
|
|
|
| These users thank MarkRH for this great post! | AskedRelic (January 19th, 2008), Noho Rob (April 20th, 2008) |