D7 RC moved : permalinks 404 & images broken

Hi everybody,

here is my problem :

I moved the Dolphin 7 RC from a server to another.

(Before moving everything worked fine)

The main menu links are not working :
Spy (http://mysite.com/m/spy/)
Chat (.../m/chat/home/)
Forum (.../forum/)

News (.../m/news/index/)

...

I receive a 404 error
When I disable the permalinks, every link is working !!!

I also have a problem with the pictures & events pictures that are not showing.

DO you have a idea of what is happening ?
I already spend a whole day on that problem :-( without any solution...

Thank-you in advance.

Serge

Quote · 11 Dec 2009

Here some info that might help you on that:

transfer my site to another folder/server. What do I need to do? ¶

1) First of all, you need to back up your folders and files and your database tables. It usually results in creation of two archives (.tgz or .zip) which you will have to unpack on your new server/folder; besides, the database tables will have to be imported in your new database.


* inc/header.inc.php change the values of the following variables according to your current settings:

$site['url'] and $dir['root']

and all the elements of $db array (it's not usually needed if you just move your site to another folder on the same server)

* cron.php in periodic folder. Edit the line as follows:

require_once( '[path_to]/inc/header.inc.php' );

where [path_to] must be changed according to the current path to Dolphin folder


If you have changed your site URL, you need to contact BoonEx and provide your license number and desired domain name.

Dont forget to reconfigure your Cron Jobs if needed :)

Chris

Nothing to see here
Quote · 11 Dec 2009

Sound like the .htaccess file in the root of your dolphin site did not get moved. That is normally a hidden file and is quite often missed when moving.

If it's there, it could be that your new host does not have mod_rewrite enabled.

It's that .htaccess file and mod_rewrite that allow the permalinks to work.

https://www.deanbassett.com
Quote · 11 Dec 2009

Thanks Deano, I was just about to post the same thing as I noticed that I had forgotten it. Thanks :)

Nothing to see here
Quote · 11 Dec 2009

Thanks Zarcon & Deano but unfortunately ....

I made all the steps explained

I have a .htaccess in the root (the one of the previous site)

In my Boonex account, the url of my website is ok.

I think the problem of the pictures (photos & events) is different that the one with permalinks.

But I can't find a way to solve this.
Another Idea ?

Quote · 11 Dec 2009

I changed my .htaccess with translations like this below (to test it), but the website is still showing stuffs like that :

www.mywebsite.com/m/videos/home/

(m should be modules)

www.mywebsite.com//m/photos/albums/browse/all

Is it normal ?

Options -MultiViews

<IfModule mod_php4.c>
php_flag register_globals Off
</IfModule>

<IfModule mod_php5.c>
php_flag allow_url_include Off
php_flag register_globals Off
</IfModule>



<IfModule mod_rewrite.c>
RewriteEngine on

RewriteRule ^news/{0,1}$  news.php [QSA,L]
RewriteRule ^news/([^/.]+)/{0,1}$  news.php?newsUri=$1 [QSA,L]

RewriteRule ^blogs/{0,1}$   modules/boonex/blogs/blogs.php [QSA,L]
RewriteRule ^blogs/tous/([0-9]+)/([0-9]+)/{0,1}$  modules/boonex/blogs/blogs.php?page=$2&per_page=$1  [QSA,L]
RewriteRule ^blogs/top/{0,1}$   modules/boonex/blogs/blogs.php?action=top_blogs [QSA,L]
RewriteRule ^blogs/top/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=top_blogs&page=$2&per_page=$1 [QSA,L]
RewriteRule ^blogs/meilleurs_posts/{0,1}$   modules/boonex/blogs/blogs.php?action=top_posts [QSA,L]
RewriteRule ^blogs/meilleurs_posts/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=top_posts&page=$2&per_page=$1 [QSA,L]
RewriteRule ^blogs/tag/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$1 [QSA,L]
RewriteRule ^blogs/tag/{0,1}$   modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey= [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/tag/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=search_by_tag&tagKey=$2&ownerName=$1 [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/category/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&categoryUri=$2 [QSA,L]
RewriteRule ^blogs/entry/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_post&postUri=$1 [QSA,L]
RewriteRule ^blogs/entry/{0,1}$    modules/boonex/blogs/blogs.php?action=show_member_post&postUri= [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1 [QSA,L]
RewriteRule ^blogs/posts/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName= [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^blogs/posts/([^/.]+)/category/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerName=$1&categoryUri=$2&page=$4&per_page=$3 [QSA,L]
RewriteRule ^blogs/accueil/{0,1}$   modules/boonex/blogs/blogs.php?action=home [QSA,L]
RewriteRule ^blogs/tous_les_posts/{0,1}$   modules/boonex/blogs/blogs.php?action=all_posts [QSA,L]
RewriteRule ^blogs/posts_populaires/{0,1}$   modules/boonex/blogs/blogs.php?action=popular_posts [QSA,L]
RewriteRule ^blogs/posts_mis_en_avant/{0,1}$   modules/boonex/blogs/blogs.php?action=featured_posts [QSA,L]
RewriteRule ^blogs/tags/{0,1}$   modules/boonex/blogs/blogs.php?action=tags [QSA,L]
RewriteRule ^blogs/voir_calendrier/{0,1}$   modules/boonex/blogs/blogs.php?action=show_calendar [QSA,L]
RewriteRule ^blogs/ma_page/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=main [QSA,L]
RewriteRule ^blogs/ma_page/ajouter/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=add [QSA,L]
RewriteRule ^blogs/ma_page/gerer/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=manage [QSA,L]
RewriteRule ^blogs/ma_page/en_attente/{0,1}$   modules/boonex/blogs/blogs.php?action=my_page&mode=pending [QSA,L]
RewriteRule ^blogs/ma_page/editer/([0-9]+)/{0,1}$  modules/boonex/blogs/blogs.php?action=edit_post&EditPostID=$1 [QSA,L]
RewriteRule ^blogs/posts_des_membres/([0-9]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=show_member_blog&ownerID=$1 [QSA,L]
RewriteRule ^blogs/categorie/([^/.]+)/{0,1}$   modules/boonex/blogs/blogs.php?action=category&uri=$1 [QSA,L]

RewriteRule ^annonces/{0,1}$  modules/boonex/ads/classifieds.php?Browse=1 [QSA,L]
RewriteRule ^annonces/ma_page/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page [QSA,L]
RewriteRule ^annonces/ma_page/ajouter/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=add [QSA,L]
RewriteRule ^annonces/ma_page/editer/([0-9]+)/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1 [QSA,L]
RewriteRule ^annonces/ma_page/editer/([0-9]+)/dimg/([0-9]+)/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=add&EditPostID=$1&dimg=$2 [QSA,L]
RewriteRule ^annonces/ma_page/gerer/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=manage [QSA,L]
RewriteRule ^annonces/ma_page/en_attente/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=pending [QSA,L]
RewriteRule ^annonces/ma_page/desapprove/{0,1}$  modules/boonex/ads/classifieds.php?action=my_page&mode=disapproved [QSA,L]
RewriteRule ^annonces/categorie/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?catUri=$1 [QSA,L]
RewriteRule ^annonces/toutes/categorie/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?catUri=$3&page=$2&per_page=$1 [QSA,L]
RewriteRule ^annonces/sous_categorie/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?scatUri=$1 [QSA,L]
RewriteRule ^annonces/toutes/sous_categorie/([0-9]+)/([0-9]+)/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?scatUri=$3&page=$2&per_page=$1 [QSA,L]
RewriteRule ^annonces/entree/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds.php?entryUri=$1 [QSA,L]
RewriteRule ^annonces/tag/([^/.]+)/{0,1}$  modules/boonex/ads/classifieds_tags.php?tag=$1 [QSA,L]
RewriteRule ^annonces/calendrier/{0,1}$  modules/boonex/ads/classifieds.php?action=show_calendar [QSA,L]
RewriteRule ^annonces/categories/{0,1}$  modules/boonex/ads/classifieds.php?action=show_categories [QSA,L]
RewriteRule ^annonces/tags/{0,1}$  modules/boonex/ads/classifieds.php?action=tags [QSA,L]
RewriteRule ^annonces/toutes/{0,1}$  modules/boonex/ads/classifieds.php?action=show_all_ads [QSA,L]
RewriteRule ^annonces/tops/{0,1}$  modules/boonex/ads/classifieds.php?action=show_top_rated [QSA,L]
RewriteRule ^annonces/populaires/{0,1}$  modules/boonex/ads/classifieds.php?action=show_popular [QSA,L]
RewriteRule ^annonces/mises_en_avant/{0,1}$  modules/boonex/ads/classifieds.php?action=show_featured [QSA,L]

RewriteRule ^photo/toutes/([0-9]+)/([0-9]+)/{0,1}$ modules/?r=photos/browse/all/&page=$2&per_page=$1 [QSA,L]
RewriteRule ^photo/galerie_top/{0,1}$ modules/?r=photos/browse/top/ [QSA,L]
RewriteRule ^photo/galerie_top/([0-9]+)/([0-9]+)/{0,1}$  modules/?r=photos/browse/top/&page=$2&per_page=$1 [QSA,L]
RewriteRule ^photo/galerie_top/([0-9]+)/([0-9]+)/{0,1}$  modules/?r=photos/browse/top/&page=$2&per_page=$1 [QSA,L]
RewriteRule ^photo/galerie_tag/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$  modules/?r=photos/browse/tag/$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^photo/galerie_tag/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/?r=photos/browse/tag/$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^photo/galerie_tag/([^/.]+)/{0,1}$  modules/?r=photos/browse/tag/$1 [QSA,L]
RewriteRule ^photo/galerie/toutes/([^/.]+)/([0-9]+)/([0-9]+)$  modules/?r=photos/browse/owner/$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^photo/galerie/toutes/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/?r=photos/browse/owner/$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^photo/galerie/toutes/([^/.]+)/{0,1}$  modules/?r=photos/browse/owner/$1 [QSA,L]
RewriteRule ^photo/galerie/([^/.]+)/{0,1}$  modules/?r=photos/view/$1 [QSA,L]
RewriteRule ^photo/galerie/{0,1}$  modules/?r=photos/view/$1 [QSA,L]

RewriteRule ^musique/tout/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/shared_music/browseMusic.php?page=$2&per_page=$1 [QSA,L]
RewriteRule ^musique/galerie_top/{0,1}$  modules/boonex/shared_music/browseMusic.php?sh_musicMode=top [QSA,L]
RewriteRule ^musique/galerie_top/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/shared_music/browseMusic.php?sh_musicMode=top&page=$2&per_page=$1 [QSA,L]
RewriteRule ^musique/galerie_top/([0-9]+)/([0-9]+)/{0,1}$  modules/boonex/shared_music/browseMusic.php?sh_musicMode=top&page=$2&per_page=$1 [QSA,L]
RewriteRule ^musique/galerie_tag/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$  modules/boonex/shared_music/browseMusic.php?tag=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^musique/galerie_tag/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/boonex/shared_music/browseMusic.php?tag=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^musique/galerie_tag/([^/.]+)/{0,1}$  modules/boonex/shared_music/browseMusic.php?tag=$1 [QSA,L]

RewriteRule ^musique/galerie/categorie/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/shared_music/browseMusic.php?categoryUri=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^musique/galerie/categorie/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/boonex/shared_music/browseMusic.php?categoryUri=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^musique/galerie/categorie/([^/.]+)/{0,1}$  modules/boonex/shared_music/browseMusic.php?categoryUri=$1 [QSA,L]

RewriteRule ^musique/galerie_accueil/{0,1}$  browseMedia.php?type=shared_music [QSA,L]
RewriteRule ^musique/galerie_favorite/{0,1}$  modules/boonex/shared_music/browseMusic.php?action=showFavorite [QSA,L]
RewriteRule ^musique/galerie_populaire/{0,1}$  modules/boonex/shared_music/browseMusic.php?action=showPopular [QSA,L]

RewriteRule ^musique/galerie/tout/([^/.]+)/([0-9]+)/([0-9]+)$  modules/boonex/shared_music/userPart.php?ownerName=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^musique/galerie/tout/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/boonex/shared_music/userPart.php?ownerName=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^musique/galerie/tout/([^/.]+)/{0,1}$  modules/boonex/shared_music/userPart.php?ownerName=$1 [QSA,L]
RewriteRule ^musique/galerie/([^/.]+)/{0,1}$  modules/boonex/shared_music/viewMusic.php?fileUri=$1 [QSA,L]
RewriteRule ^musique/galerie/{0,1}$  modules/boonex/shared_music/viewMusic.php?fileUri=$1 [QSA,L]

RewriteRule ^video/all/([0-9]+)/([0-9]+)/{0,1}$   modules/boonex/shared_video/browseVideo.php?page=$2&per_page=$1 [QSA,L]
RewriteRule ^video/galerie_top/{0,1}$  modules/boonex/shared_video/browseVideo.php?sh_videoMode=top [QSA,L]
RewriteRule ^video/galerie_top/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/shared_video/browseVideo.php?sh_videoMode=top&page=$2&per_page=$1 [QSA,L]
RewriteRule ^video/galerie_top/([0-9]+)/([0-9]+)/{0,1}$  modules/boonex/shared_video/browseVideo.php?sh_videoMode=top&page=$2&per_page=$1 [QSA,L]
RewriteRule ^video/galerie_tag/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$  modules/boonex/shared_video/browseVideo.php?tag=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^video/galerie_tag/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/boonex/shared_video/browseVideo.php?tag=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^video/galerie_tag/([^/.]+)/{0,1}$  modules/boonex/shared_video/browseVideo.php?tag=$1 [QSA,L]

RewriteRule ^video/galerie/categorie/([^/.]+)/([0-9]+)/([0-9]+)/{0,1}$ modules/boonex/shared_video/browseVideo.php?categoryUri=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^video/galerie/categorie/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/boonex/shared_video/browseVideo.php?categoryUri=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^video/galerie/categorie/([^/.]+)/{0,1}$  modules/boonex/shared_video/browseVideo.php?categoryUri=$1 [QSA,L]

RewriteRule ^video/galerie_accueil/{0,1}$  browseMedia.php?type=shared_video [QSA,L]
RewriteRule ^video/galerie_favorite/{0,1}$  modules/boonex/shared_video/browseVideo.php?action=showFavorite [QSA,L]
RewriteRule ^video/galerie_populaire/{0,1}$  modules/boonex/shared_video/browseVideo.php?action=showPopular [QSA,L]

RewriteRule ^video/galerie/tout/([^/.]+)/([0-9]+)/([0-9]+)$  modules/boonex/shared_video/userPart.php?ownerName=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^video/galerie/tout/([^/.]+)/([0-9]+)/([0-9]+)/$  modules/boonex/shared_video/userPart.php?ownerName=$1&page=$3&per_page=$2 [QSA,L]
RewriteRule ^video/galerie/tout/([^/.]+)/{0,1}$  modules/boonex/shared_video/userPart.php?ownerName=$1 [QSA,L]
RewriteRule ^video/galerie/([^/.]+)/{0,1}$  modules/boonex/shared_video/viewVideo.php?fileUri=$1 [QSA,L]
RewriteRule ^video/galerie/{0,1}$  modules/boonex/shared_video/viewVideo.php?fileUri=$1 [QSA,L]

RewriteRule ^recherche/tag/([^/.]+)/{0,1}$  search.php?Tags=$1 [QSA,L]

RewriteRule ^parcourir/([^/.]+)/([^/.]+)/([^/.]+)$ browse.php?sex=$1&age=$2&country=$3 [QSA,L]

RewriteRule ^module/(.*)$  modules/index.php?r=$1 [QSA,L]

RewriteRule ^forum/groupes/(.*)$  modules/boonex/forum/$1?orca_integration=groups [QSA,L]
RewriteRule ^forum/events/(.*)$  modules/boonex/forum/$1?orca_integration=events [QSA,L]
RewriteRule ^forum/shop/(.*)$  modules/boonex/forum/$1?orca_integration=store [QSA,L]
RewriteRule ^forum/(.*)$  modules/boonex/forum/$1 [QSA,L]

RewriteRule ^page/(.*)$  viewPage.php?ID=$1 [QSA,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule .+ - [L]
RewriteRule ^([^/]+)$ profile.php?ID=$1 [QSA,L]

</IfModule>

AddType application/vnd.adobe.air-application-installer-package+zip .air
AddType application/x-shockwave-flash .swf

Quote · 11 Dec 2009

Of course I cleaned the cache !

Quote · 11 Dec 2009

My links show /m/ instead of modules:

example:

http://www.mysite.com/m/photos/home/

Chris

Nothing to see here
Quote · 11 Dec 2009

is mod_rewrite on  check php.ini for this  or phpinfo.php from admin section ?  dont see why it wouldnt be but ahh...

https://dolphin-techs.com - Skype: Dolphin Techs
Quote · 11 Dec 2009

If I put this in the .htaccess, no error !!!

<IfModule mod_php5.c>
kjghkjgkjgkjgkjgjkg
php_flag allow_url_include Off
php_flag register_globals Off
</IfModule>

It's not normal, I should be in this case, but I have no error !

PHP Version 5.2.5-pl1-gentoo

in the phpinfo.php, the only thing speaking about rewriting is :

url_rewriter.tags a=href,area=href,frame=src,input=src,form=,fieldset=

Quote · 11 Dec 2009

Finally, I made a complete reinstallation :-(

But it works.

Many Thank

Quote · 12 Dec 2009
 
 
Below is the legacy version of the Boonex site, maintained for Dolphin.Pro 7.x support.
The new Dolphin solution is powered by UNA Community Management System.