Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Duken Posted March 22, 2018 Posted March 22, 2018 Dear, I can't find any help article about this. Hope somone can help me out. A long time ago i started Duken.nl with Joomla en SMF forum. Later i upgraded joomla to Wordpress and SMF to IPB. At the moment i have a wordpress installation on Duken.nl in the root and a IPB installation in /forums I redirected the frontpage of duken.nl to https://www.duken.nl/forums/home/ (ipb pages) I want to remove Wordpress on the root and move IPB from /forums to the root. IPB Pages should be the startpage and IPB forums URLs should stay on /forums . At the moment we have news on: https://www.duken.nl/forums/nieuws/ this should be https://www.duken.nl/nieuws/ for tutorials is it the same At the moment: https://www.duken.nl/forums/handleidingen/handige-tips/vpn-verbinding-en-anoniem-downloaden-r35/ This should be: https://www.duken.nl/handleidingen/handige-tips/vpn-verbinding-en-anoniem-downloaden-r35/ Etc. Is there any tutorial or good way to do this? Regards,
evandixon Posted March 22, 2018 Posted March 22, 2018 Short version is 1. Back up everything. Always a good first step. 2. Move the IC install to the new location, or configure your webserver to make the IC installation your new root 3. Update conf_global.php with your new base URL. This actually fixes links to your site in people's posts, since this is replaced with a placeholder when added to the database. And your ACP url too. Also check constants.php since there may be stuff in that too (I don't remember which file contains which settings). 4. Reset your license URL in the client area 5. Optional, but recommended for SEO: configure redirects from /forums to /. Be careful to not redirect traffic from your new forums location. Our site moved from /forums to /home, to fix the URL for a forum being /forums/forums/forum. We didn't move to / because we have some subdirectories under / containing non IPS stuff, and the Pages application can be served from the root anyway.
Duken Posted March 22, 2018 Author Posted March 22, 2018 Hi Thank you, i'm also thinking to let the existing urls (pages) exists and to this later to make the migration easier. https://www.duken.nl/forums/handleidingen/handige-tips/vpn-verbinding-en-anoniem-downloaden-r35/ url won't change. Is this possible when you move the IPB to root?
Pete T Posted March 22, 2018 Posted March 22, 2018 2 minutes ago, Duken said: Hi Thank you, i'm also thinking to let the existing urls (pages) exists and to this later to make the migration easier. https://www.duken.nl/forums/handleidingen/handige-tips/vpn-verbinding-en-anoniem-downloaden-r35/ url won't change. Is this possible when you move the IPB to root? To me looks like not moved your site to your root unless mistaken, you need move every file/folder to / so when in there see every folder and file from admin folder to the file conf_global.php once this done make sure change change conf_global.php information under 'base_url' => 'yoursite.com', this allow your site work from base root. Once above done in Admin CP make pages your default app via clicking the star this now make pages make loading page and your forum read /forums you will not need any form redirect for this as all inbuilt if unsure i happy help here.
Duken Posted March 22, 2018 Author Posted March 22, 2018 Hi Pete, thank you for the reaction for me, just to be sure. 1. clear all files on host except /forums folder /host/ empty except host/forums 2. Move all files from /host/forums to /host 3. remove /forums folder 4. change the conf_global file. 5. Reset your license URL in the client area --- From this moment the site works with urls from:https://www.duken.nl/forums/topic/7708-café-de-download/ to:https://www.duken.nl/topic/7708-café-de-download/ --- 6. Make IPB pages the default app and forums are back to /forums/.... When you visit www.duken.nl you will be brought to www.duken.nl/home/ ? Is there a old 301 from https://www.duken.nl/forums/home/ ? Thank you!
opentype Posted March 22, 2018 Posted March 22, 2018 17 minutes ago, Duken said: When you visit www.duken.nl you will be brought to www.duken.nl/home/ ? Is there a old 301 from https://www.duken.nl/forums/home/ ? The site root URL does not forward to a specific page—it will show that page in the root. Example: https://sing.salon Technically, that’s a Pages page with the URL slug /articles/, but since it is set to be the homepage, it will show that page without the URL slug.
Pete T Posted March 22, 2018 Posted March 22, 2018 8 minutes ago, Duken said: Hi Pete, thank you for the reaction for me, just to be sure. 1. clear all files on host except /forums folder /host/ empty except host/forums 2. Move all files from /host/forums to /host 3. remove /forums folder 4. change the conf_global file. 5. Reset your license URL in the client area --- From this moment the site works with urls from:https://www.duken.nl/forums/topic/7708-café-de-download/ to:https://www.duken.nl/topic/7708-café-de-download/ --- 6. Make IPB pages the default app and forums are back to /forums/.... When you visit www.duken.nl you will be brought to www.duken.nl/home/ ? Is there a old 301 from https://www.duken.nl/forums/home/ ? Thank you! Hi, Let me explain for example your current forum is /forums folder you need move every folder from there into / but make sure have backup and remove folder called /forums as this cause issues. Once done change conf_global on that line your forum ready to go change default app from forums to pages and this makes pages the main loading page, you may also need run support tool for the cache but part from that all good to go.
Duken Posted March 22, 2018 Author Posted March 22, 2018 Is it that easy... ? I just want to be sure about the pages URLs that are under /root/forums at the moment. Do they exists on the /root/ of will they be moves to /root/pages ? @opentype There ia a url there called: https://sing.salon/microphone-reviews/ On my site it is https://sing.salon/forums/microphone-reviews/ at the moment. Do these url still exists after the move? There is a old post with a link: https://invisioncommunity.com/4guides/suite-applications/pages/tips-tricks/ advanced-using-pages-under-your-community-root-r244/ . This one is offline, is there a new version somewhere over the rainbow? Thank you guys,
Pete T Posted March 22, 2018 Posted March 22, 2018 5 minutes ago, Duken said: Is it that easy... ? I just want to be sure about the pages URLs that are under /root/forums at the moment. Do they exists on the /root/ of will they be moves to /root/pages ? @opentype There ia a url there called: https://sing.salon/microphone-reviews/ On my site it is https://sing.salon/forums/microphone-reviews/ at the moment. Do these url still exists after the move? There is a old post with a link: https://invisioncommunity.com/4guides/suite-applications/pages/tips-tricks/ advanced-using-pages-under-your-community-root-r244/ . This one is offline, is there a new version somewhere over the rainbow? Thank you guys, All pages show as open type web site does it's best example how would look.
opentype Posted March 22, 2018 Posted March 22, 2018 8 minutes ago, Duken said: There is a old post with a link: https://invisioncommunity.com/4guides/suite-applications/pages/tips-tricks/ advanced-using-pages-under-your-community-root-r244/ . This one is offline, is there a new version somewhere over the rainbow? That is irrelevant to what you want to do.
marklcfc Posted March 22, 2018 Posted March 22, 2018 I got in a right mess when I did this. I had a permanent redirect so everyone was still seeing that, even after I removed it. I added another redirect going from /forums to / which seemed to get around it, but whenever I removed that, it seemed to go back to /forums again upon access. Anyway I left the redirect in there for about a year then removed it, never been fully sure if I did it correctly or if its as it should be even now though ?
Duken Posted March 22, 2018 Author Posted March 22, 2018 12 minutes ago, opentype said: That is irrelevant to what you want to do. OK, i hoped there was more info in there. @marklcfc that sounds bad. mmm Someone has a simple idea to just stop wordpress? Like remove all files on /root/*.* except /forums/ , Make a file in /root/ that tells that the site works from /root/forums/ ? I want to kill wordpress. Some users are landing on wordpress URLS. Example: a user visits the old wordpress URL: http://www.duken.nl/over-duken/ when wordpress is deleted this page does not exists. Is there a way to redirect al www.duken.nl/*.* to www.duken.nl/forums/ ? Makes it a lot easier for now.
Pete T Posted March 22, 2018 Posted March 22, 2018 7 minutes ago, Duken said: OK, i hoped there was more info in there. @marklcfc that sounds bad. mmm Someone has a simple idea to just stop wordpress? Like remove all files on /root/*.* except /forums/ , Make a file in /root/ that tells that the site works from /root/forums/ ? I want to kill wordpress. Some users are landing on wordpress URLS. Example: a user visits the old wordpress URL: http://www.duken.nl/over-duken/ when wordpress is deleted this page does not exists. Is there a way to redirect al www.duken.nl/*.* to www.duken.nl/forums/ ? Makes it a lot easier for now. I so confused it's not hard move your site as you requested it very simple task that requires very simple steps to move from one location to the next if want keep it as already have just remove the WordPress files and make simple redirect page to forum.
Duken Posted March 22, 2018 Author Posted March 22, 2018 Just now, Pete T said: I so confused it's not hard move your site as you requested it very simple task that requires very simple steps to move from one location to the next if want keep it as already have just remove the WordPress files and make simple redirect page to forum. Sorry Im still not clear what happends to the current pages URLS. Will there be new pages urls or do they stil exists behind www.duken.nl/forums/*pages* ?
opentype Posted March 22, 2018 Posted March 22, 2018 6 minutes ago, Duken said: Sorry Im still not clear what happends to the current pages URLS. They will change from https://www.duken.nl/forums/nieuws/ to https://www.duken.nl/nieuws/ Not sure whether there will be automatic URL forwarding. Be ready to set up some htaccess rules.
Duken Posted March 22, 2018 Author Posted March 22, 2018 Thank opentype, that is a big thing for me. I will do this later then. first let me kill wordpress first, later we can do this. Could i make something simple in a .htaccess file like ? RewriteEngine on RewriteCond %{HTTP_HOST} ^(www.)?duken.nl$ RewriteCond %{REQUEST_URI} !^/forums/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /forums/$1 RewriteCond %{HTTP_HOST} ^(www.)?duken.nl$ RewriteRule ^(/)?$ forums/index.php [L] or RewriteEngine On RewriteRule ^$ /forums [L]
Duken Posted March 22, 2018 Author Posted March 22, 2018 I found this: Redirect 301 / https://www.duken.nl/forums/ Can this be enough in the .htaccess file?
Rhett Posted March 22, 2018 Posted March 22, 2018 1 hour ago, Duken said: I found this: Redirect 301 / https://www.duken.nl/forums/ Can this be enough in the .htaccess file? You can't rewrite /forums in this case as our internal built in urls use /forums If you previously had /forum or /community you could do that, but not in the case of using /forums prior, as serving pages as the default app, then puts the forums app at /forums, so it can't be re-written.
Duken Posted March 22, 2018 Author Posted March 22, 2018 Thanks @Rhett. I understand the situation. So i just want to clear out the Wordpress site. A htaccess could be enough? Could you check the solution posted above?
Rhett Posted March 22, 2018 Posted March 22, 2018 3 minutes ago, Duken said: Thanks @Rhett. I understand the situation. So i just want to clear out the Wordpress site. A htaccess could be enough? Could you check the solution posted above? If you delete wordpress, then those urls will not exist, there isn't really a solution for this, what type of redirect would you like? where do you want old urls to go too in this case? You can use custom furls to create one-off urls for items if you have a few of them, but I'm not sure what you are after or what the goal is for all the word press urls? Where should they go?
Duken Posted March 22, 2018 Author Posted March 22, 2018 All the urls not from /forums should go go the /forums . So www.duken.nl/oldlink123 www.duken.nl/oldlink12hdkhd www.duken.nl/oldlink123/alsoold Should all go to www.duken.nl/forums
Duken Posted March 27, 2018 Author Posted March 27, 2018 That went wrong... i changed my .htaccess file to: Redirect 301 / https://www.duken.nl/forums/ ErrorDocument 404 https://www.duken.nl/forums/ After that the site went to: https://www.duken.nl/forums/forums/forums/forums/forums/forums/forums/forums/forums/forums/ etc... i reverted the .htaccess file. @Rhett or someone else. What did i do wrong? ?
Rhett Posted March 27, 2018 Posted March 27, 2018 On 3/22/2018 at 10:45 AM, Rhett said: You can't rewrite /forums in this case as our internal built in urls use /forums If you previously had /forum or /community you could do that, but not in the case of using /forums prior, as serving pages as the default app, then puts the forums app at /forums, so it can't be re-written. 2 Look above, you cannot rewrite/redirect /forums in this case. 1 hour ago, Duken said: That went wrong... i changed my .htaccess file to: Redirect 301 / https://www.duken.nl/forums/ ErrorDocument 404 https://www.duken.nl/forums/ After that the site went to: https://www.duken.nl/forums/forums/forums/forums/forums/forums/forums/forums/forums/forums/ etc... i reverted the .htaccess file. @Rhett or someone else. What did i do wrong? ?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.