[wp-hackers] mod rewrite problems

Stefan Hartweg stefan at hartweg.net
Thu May 4 05:28:42 GMT 2006


I've added right after RewriteBase /digitalcamera/ but it's still displaying
the 404 error inside the Wordpress template. 

I created the following simple .htaccess file:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /digitalcamera/
#the following line should redirect to test.html
RewriteRule ^/test.html$ /test/test.html
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /digitalcamera/index.php
</IfModule>
# END WordPress

The test directory is located at /digitalcamera/test.
So if I type in http://myhost.com/digitalcamera/test.html it should use mod
rewrite to display http://myhost.com/digitalcamera/test/test.html, but it
doesn't. As I said, it's still displaying the 404 error inside the Wordpress
template.

Any ideas?

Steve


-----Original Message-----
From: wp-hackers-bounces at lists.automattic.com
[mailto:wp-hackers-bounces at lists.automattic.com] On Behalf Of Robert Deaton
Sent: Thursday, 4 May 2006 12:06 PM
To: wp-hackers at lists.automattic.com
Subject: Re: [wp-hackers] mod rewrite problems

Where did you add it?

>
> # BEGIN WordPress
>
> <IfModule mod_rewrite.c>
>
> RewriteEngine On
>
> RewriteBase /digitalcamera/

It should go here

>
> RewriteCond %
>
> {REQUEST_FILENAME} !-f

Here is no good.

>
> RewriteCond %{REQUEST_FILENAME} !-d
>
> RewriteRule . /digitalcamera/index.php
>
> </IfModule>
>
> # END WordPress
>


--
--Robert Deaton
http://somethingunpredictable.com






More information about the wp-hackers mailing list