• Welcome to Simple Machines Community Forum. Please login or sign up.
October 27, 2021, 03:55:38 PM

News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord


how 2 move my forum from root to subdirectory but redirecting links , what 2 do

Started by rishab555555, July 20, 2011, 06:06:06 AM

Previous topic - Next topic

rishab555555

If you can't help then let others help please.You should have deleted the one in which you were replying !


If some one was trying to solve my problem then why did you merged them ?

I hope they will be able to find the topic :(

Illori

they can find it in their post history. we have a policy here for a reason and people that dont stick to it will have to deal with the results.


blind564

Hi rishab555555.

i saw that you move your forum to subdirectory, i'm trying do this but  when i remove the files of the original directory, my forum lost tthe style.

my question is if you has tried of remove the originals files?
dont happed the same?

rishab555555

I am researching on the problems wich may arise as i can not bear downtime for my forum.

The problem which you are saying usually arises when we upgrade from one version of smf to another but in your case if you have only moved the files &  lost original layout then their can be some problem their.

You can do the same thing :

1.Just uninstall your custom theme
2.Run repair_settings.php  tool http://download.simplemachines.org/index.php?thanks;filename=repair_settings.php

3.If even after doing this you could not get back your right layout , just uninstall the modes and run large upgrade package and after that apply repair_settings.php

4.If everything seems fine , install custom theme again and , your forum is back again !

MrPhil

So you want to move your SMF to a subdirectory, and know how to move the files and run repair_settings.php to adjust internal settings to the new location. The problem then becomes how to deal with all those URLs trying to access the old (root) location? As you've noted, a simple redirect to the new location (whether silently or 301) will mess up WP. Can you find all patterns in SMF URIs that are not found in WP, and vice-versa, and use those patterns to select which URIs to redirect? For example, does a WP URI include topic=nnnnnn.nn? Naturally, you'd have to find all the patterns that SMF uses and ensure that WP isn't using any of them too. If you can't, about all you could do is modify WP to bail out if it gets an incorrect URI or parameters and toss the URL over the wall to SMF. It would not be easy.

By the way, it will be a mistake to install WP in the root. It too should go in its own subdirectory. Major subsystems (SMF, WP, a store, a gallery, etc.) should always be installed in their own subtrees so that they don't interfere with each other, and can be added, removed, or changed without fear of stomping on each other. As you already have SMF in the root, if you don't want to move it, why not install WP into a subdirectory? Or, best of all, move SMF (with root-level redirection that excludes WP) to its subdirectory, install WP into its subdirectory, and put a landing page in the root that includes links to either application.

/  index.php landing page
   .htaccess to redirect /* to /forum/* (except if /forum, /blog, /index.php, or just /)
   /forum   SMF moved here
   /blog  WP installed here

luuuciano

Do you have important content in the "old" place?
I have used this .htaccess directive when moving a forum (it was a from a directory to another domain, you will have to workit to your needs)

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^directory\/?(.*)$ "http\:\/\/yourdomain\.com\/$1" [R=301,L]

it is cool because it redirects automagically to the newer location, no 404, errors, etc (and using a 301 for robots)
No me agradan los foros que no te dejan borrar TU PROPIO usuario, como por ejemplo smfsimple.com.
E incluso te mandan emails no solicitados, de los cuales, quizá, no puedas escapar porque NO te dejan posibilidad a deshabilitarlos (a menos que NO te tengan en su lista negra).

Illori

Please stop posting multiple threads on this same issue. one thread is enough if someone knows the answer they will reply here.

Advertisement: