[wp-testers] URL rewrite error

Zhao Qianli zhao.qianli at gmail.com
Sat Oct 27 07:32:19 GMT 2007


Thank you guys. But I am so unlucky, I guess the .htaccess is right, however
404 is still there.

my .htaccess:
/////////////////////////////////////////////////////////////////////
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
/////////////////////////////////////////////////////////////////////
On 10/27/07, Jeremy Visser <jeremy.visser at gmail.com> wrote:
>
> On 10/27/07, Zhao Qianli <zhao.qianli at gmail.com> wrote:
> > I test Wordpress 2.3.1 on my localhost, but 404 error appears when
> clicking
> > a post link. My localhost is based on Ubuntu 7.10 with apache 2、PHP5 and
> > MySQL 5, and I have enabled mod_rewrite. The default permalink format is
> ok
> > ,but other formats (eg. /%year%/%monthnum%/%day%/%postname%/ ) don't
> work.
> > Please help me ! Thanks.
>
> This is because Ubuntu does not allow .htaccess files by default.
>
> Open up /etc/apache2/sites-enabled/000-default, and find the line:
>
>     <Directory /var/www>
>
> Then, where it says:
>
>     AllowOverride None
>
> change it to:
>
>     AllowOverride All
>
> and do:
>
>     sudo invoke-rc.d apache2 restart
>
> If you're not unlucky, it should work! :)
>
> _______________________________________________
> wp-testers mailing list
> wp-testers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-testers
>
>


-- 
Zhao Qianli

http://thinkinglog.info
http://blog.techpush.com


More information about the wp-testers mailing list