[wp-testers] URL rewrite error

Zhao Qianli zhao.qianli at gmail.com
Sat Oct 27 07:35:02 GMT 2007


add my error page:

Not Found

The requested URL /wordpress2/2007/10/27/hello-world/ was not found on this
server.
------------------------------
Apache/2.2.4 (Ubuntu) mod_fastcgi/2.4.2 mod_python/3.3.1 Python/2.5.1
PHP/5.2.3-1ubuntu6 mod_perl/2.0.2 Perl/v5.8.8 Server at localhost Port 80

On 10/27/07, Zhao Qianli <zhao.qianli at gmail.com> wrote:
>
> 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
>



-- 
Zhao Qianli

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


More information about the wp-testers mailing list