[wp-testers] URL rewrite error

Zhao Qianli zhao.qianli at gmail.com
Sat Oct 27 09:54:57 GMT 2007


Yeah! I solved this problem!!!

As Jeremy said, the key is "/etc/apache2/sites-enabled/000-default",edit it
,then You must change

AllowOverride None

to:

AllowOverride All

there are two have to be changed, but I only changed one before.  Now
everything is wonderful, Thank you Jeremy!

DocumentRoot /your-site-root/
        <Directory />
                Options FollowSymLinks
                AllowOverride All
        </Directory>
        <Directory /your-site-root/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                allow from all
                # This directive allows us to have apache2's default start
page
                # in /apache2-default/, but still have / go to the right
place
                #RedirectMatch ^/$ /apache2-default/
        </Directory>


On 10/27/07, Zhao Qianli <zhao.qianli at gmail.com> wrote:
>
> Sorry , it is my fault.. I installed two WPs on localhost,  one WP 2.3.1in "worpdress" folder, another WP
> 2.3 in "wordpress2" folder,  they met the same 404 error, I pasted
> "wordpress2" error message at last email but that .htaccess is belong to
> "wordpress". I am confused:o, "wordpress" error is below:
>
> Not Found
>
> The requested URL /wordpress/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
>
>
> In addition, I found some interesting infos in apache error log:
>
> [Sat Oct 27 15:39:09 2007] [error] [client 127.0.0.1] File does not exist:
> /home/qianli/WWWROOT/wordpress/2007, referer: http://localhost/wordpress/
> [Sat Oct 27 15:43:20 2007] [error] [client 127.0.0.1] File does not exist:
> /home/qianli/WWWROOT/wordpress/2007, referer: http://localhost/wordpress/
>
>
> On 10/27/07, Jeremy Visser <jeremy.visser at gmail.com > wrote:
> >
> > On 10/27/07, Zhao Qianli <zhao.qianli at gmail.com > wrote:
> > > The requested URL /wordpress2/2007/10/27/hello-world/ was not found on
> > this
> > > server.
> > >
> > > > RewriteBase /wordpress/
> >
> > You are trying to access the URL, which starts with /wordpress2/, but
> > RewriteBase in the .htaccess contains /wordpress/. You might want to
> > go into Options > Permalinks and save the settings a second time, to
> > make sure everything's consistent.
> > _______________________________________________
> > 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