Page 1 of 1

Blog migration and strange issue

Posted: Sun Aug 30, 2009 8:20 pm
by ranman
Hi,

I moved the blog between servers/hostings, and went well... apparently...


Strange issue:

when clicking on the "admin" link on the frontpage I get:

---------
Not Found

The requested URL /admin was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
--------
Then... if I place the follwing .htaccess file with the following definitions in the directory:

Code: Select all

# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php

RewriteEngine On
RewriteBase /
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html) index.php?/$1 [NC,L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [NC,L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^comments/(.*) index.php?url=/comments/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]

<Files *.tpl.php>
    deny from all
</Files>

<Files *.tpl>
    deny from all
</Files>

<Files *.sql>
    deny from all
</Files>

<Files *.inc.php>
    deny from all
</Files>

<Files *.db>
    deny from all
</Files>

# END s9y
#SPAMDENY
Deny From 208.53.168.57,208.85.242.212,66.90.103.130,66.90.118.110,67.159.44.159,91.84.248.29,114.80.93.71
#/SPAMDENY
AddHandler application/x-httpd-php .php .phtml .php3 .php4 .php5 .php6
AddHandler ical/ics .ics
the firefox/safari when typed the URL it just download the page, does not know what to do.

Any idea??

I migrated the blog in the past but I am a little bit confused right now, I am not sure what is wrong this time

generations.menteyarte.org is the blog.

Thanks very much

Ran

Re: Blog migration and strange issue

Posted: Sun Aug 30, 2009 8:26 pm
by ranman
hi,

sorted minutes After....

In the new server not many apache handlers where define.. then:

Apache Handler List
Handler Extension(s) Remove
User Defined Apache Handlers application/x-httpd-php .php

And that was it

Leaving thing for the record

Thanks very much all


Ran

Re: Blog migration and strange issue

Posted: Mon Aug 31, 2009 11:28 am
by garvinhicking
Hi!

It seems your new blog server does not support URL Rewriting, so you might need to remove .htaccess and use php0MyAdmin and change the serendipity_config table, and set the "rewrite" column to "none".

HTH,
Garvin