To move a Simple Machines Forum (SMF) installation from a subfolder such as /forum into your domain’s document root, you must do more than move files. Copy or move the complete SMF file set, then change the core paths in Settings.php and update the attachment, avatar, smiley, and theme paths stored in the database. Finish with SMF’s repair utility and a functional test.
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
The safest sequence is: back up the files and database, make sure the root is not occupied by another application, move the files, correct the absolute filesystem paths and public URL, update database path values, repair any incorrect settings, and test every feature that serves an image or writes a file.
As an Amazon Associate I earn from qualifying purchases.
Windows Errors? Fix Them Before They Spread
Repair common Windows errors and clear accumulated junk for a smoother, more stable PC - no reinstall needed.Free scan · no reinstallOutdated Drivers Are Slowing You Down
One free scan finds every outdated or missing driver and matches the right update for your exact hardware.Free scan · exact hardware matchWhat changes when SMF moves to the root
An SMF installation has two kinds of location information:
- Filesystem paths tell PHP where the board files, source code, attachments, avatars, smileys, and themes exist on the server.
- Public URLs tell a browser where to request the forum and its images.
When the forum moves from a subfolder to the document root, both sets of values change. Moving the files alone leaves SMF looking for code and uploads under the old directory. Updating only the main URL leaves images, themes, avatars, or attachments pointing at the old address. Those mismatches can produce broken images, failed uploads, redirect loops, missing styles, or a completely unusable board.
#1 Best Overall
- [Ultra-Lightweight Ear Buds Designed for Small Ears] Each earbud weighs only 3.7g and features a compact, ergonomic in-ear design made especially for small ears. Secure, low-profile, and comfortable for workouts, all-day wear or overnight sleeping.The ultra-slim profile sits flush in your ear with no hard edges poking or rubbing, so you can even sleep on your side without discomfort.
- [Immersive Stereo Sound with TOZO OrigX Technology] TOZO OrigX tuning delivers clear vocals, balanced mids, and natural stereo sound for music, podcasts, and videos.
- [Long Battery Life for Daily Use] Get up to 7 hours of playtime on a single charge, with up to 32 hours total using the charging case—ideal for workdays, commuting, and extended listening sessions.
- [Bluetooth 5.3 & Stable Connection] Bluetooth 5.3 provides fast pairing, stable wireless performance, and reduced dropouts as you move around home or office.
- [Deep Bass with Clear Vocals] High-performance drivers produce punchy bass while keeping vocals clean and detailed for everyday listening.
SiteGround’s SMF migration guidance specifically calls for moving every file from the existing installation folder into public_html, then changing Settings.php and the related database values. Simple Machines’ repair utility likewise warns that incorrect installation paths and URLs can cause major problems.
Prepare before touching the installation
Confirm the destination
Identify the document root used by the domain. On many shared hosts it is named public_html, but your control panel may use another directory. Confirm that this is the root serving the domain you want to use; changing files in a different account or parked-domain directory will not move the intended forum.
Make sure the destination is not already occupied by an active application. SiteGround cautions that an existing script in the root can corrupt the migration. If a WordPress, another SMF installation, a framework, or even an old index file is active there, decide whether it must be removed, archived, or moved first. Do not overwrite an unrelated site without a separate backup and a rollback plan.
Create two independent backups
- Download the entire current SMF directory, including
Settings.php, theSourcesdirectory, themes, attachments, avatars, and custom files. - Export the SMF database with your hosting control panel or database administration tool. Keep the export outside the web root.
- Record the current values of
$boardurl,$boarddir, and$sourcedir, plus the old subfolder name. You will need them if you roll back. - Record the current document-root path and the destination path. A URL such as the root domain and a filesystem path such as
/home/account/public_htmlare different things and must not be interchanged.
Verify that the backup can actually be opened or downloaded before proceeding. A backup that was never tested is not a dependable rollback.
Rank #2
- 【IP68 Waterproof Multifunctinal Smart Watch】Torjalph fitness activity tracker smart watch is IP68 waterproof technology ,you can wear it when swimming,handwashing,it's rain-proof which means that you perform multiple exercise modes outside without worrying about sweat or rain corroding your fitness smart watch,and this watch equipped with a 230 mAh large capacity battery magnetic charging ,and this sports activity tracker watch can be used 5-7 days If fully charged.
- 【Larger 1.83'' Full Screen Watch & Multi-dial Selection】1.83 inch full HD color touch screen smart watch for men / women provides excellent 240*284 resolution image quality ,This Bluetooth smart watch offers a better touch experience and remarkable immersion and ,more than 200 watch faces for you to choose from App"Da Fit ", you can change the dial style according to your mood to wear keeping the world on your wrist
- 【Accurate Activity Tracker Smart Watch 】sports watch activity tracker uses sweat and dust resistant breathable silicone strap, our Fitness Tracker Smart Watch for Android iOS Phones supports 12 sports modes,walking,running,bicycle,swimming,badminton,basketball,football,rope skipping. This bluetooth calls smart watch for men women is lightweight and stylish, bringing more convenient and relaxing sports experience while also providing more protection.
- 【Your 24 Hour Personal Daily Health Monitor】Fitness watch for women men full touch screen IP67 waterproof bluetooth smartwatch for Android iOS Phones with heart rate blood pressure monitor multifunction Andriod smart watch with steps counter sleep monitor sports fitness watch, monitoring blood oxygen saturation allows you to understand your physical condition in real time to track fitness progress ,to know your health status in time.
- 【More Functions Bluetooth Call Smart Watch】This fitness activity smart watch full screen for iPhone and Android phones includes a bunch of new features including:The bluetooth smart watch can hang up the phone, receive and display WhatsAPP /Text /Facebook /Twitter /Messenger reminder.Support sedentary reminder, alarm clock, stopwatch, timer,weather information,music control, remote camera control compatible with Android 5.0 and above or iOS 9.0 and above smartphones.
Plan the transition window
Moving files while users are posting can create a split state: new uploads may land in the old directory while visitors are already reaching the new one. If your SMF version provides a maintenance or offline control, enable it for the move. Otherwise, choose a quiet period, keep the old directory intact until testing is complete, and avoid making database changes from two locations at once.
Move the files and correct Settings.php
1. Move the complete SMF file set
- Open the current SMF installation directory in your host’s file manager or an SFTP client.
- Select all files and folders, including hidden files if your client displays them. The
Sourcesdirectory, theme directories, attachment directories, andSettings.phpmust be included. - Move the files into the domain’s document root. SiteGround’s published instruction is to “move all the files from your current SMF installation folder to your
public_htmlfolder.” Preserve the directory structure; do not flatten the contents ofSourcesor a theme directory. - Do not delete the old copy yet. Keeping it untouched gives you a straightforward rollback while the root installation is being checked.
If the file manager cannot move across locations, copy the files first, compare the file counts and key directories, and only then remove the old copy after the new installation works.
2. Set the public board URL
Open the root copy of Settings.php in a text editor that preserves PHP syntax. Change $boardurl to the URL visitors should use for the root forum. Remove the old subfolder and do not add a trailing slash. The value should end at the domain (or any deliberate non-folder path), not at /.
Do not put a filesystem path in $boardurl. This variable is public-facing and should use the site’s normal scheme and hostname, while $boarddir and $sourcedir use server paths.
Rank #3
- [Low Noise High Fidelity] New bee guitar cord with 22AWG oxygen-free-copper center conductors provides enhanced signal transfer, the PVC insulation material and the high-density stranded copper double shield provide noise rejection for quiet operation
- [Ideal for Choice] New bee 1/4 straight and right angle metal connectors, ensures a secure connection in any instrument, pedal, or amp jack. L shape great fro on stage guitar stands
- [Wide Compatible] Suitable for mixer, power amplifier, microphone, effector, decoder, equalizer, electoronic organ, electric guitar, electric bass and other electronic equipments. Widely used in the installation of smart home, karaoke speaker, professional stage audio, etc
- [Easy Disassemble] Making incidental repairs quick and easy! Very nice, flexible cable
- [Dont Hesite to Order] 24 hours customer services and professional technology team are standing by
3. Set the absolute board and source paths
Change $boarddir to the absolute filesystem path of the new root installation. Change $sourcedir to the absolute path of the Sources directory inside that installation. Both values must describe the server’s real directories; a relative value such as . is not a safe substitute for the absolute board path.
For example, if the root directory is /home/account/public_html, the source path is that directory followed by /Sources. Use the path shown by your hosting panel or SFTP client rather than guessing the account name. Check capitalization on case-sensitive servers.
The Tool Desk
Outbyte PC Repair FREEClear out junk files and repair common Windows errorsFree Scan →Outbyte Driver Updater FREEScan for outdated or missing drivers - takes under a minuteDriver Scan →4. Save without damaging PHP syntax
Keep the existing variable names, semicolons, and PHP delimiters intact. Edit only the values unless you have a separate reason to change code. Upload the corrected file to the root copy and confirm its permissions still allow the web server to read it. A syntax error or an unreadable Settings.php can produce a blank page or a server error before SMF can display a useful message.
Update path and URL values stored in the database
SMF keeps several locations outside the three variables in Settings.php. The old subfolder must be removed from each applicable value. Use SMF’s administration tools or your database administration tool, and take another database export before editing rows.
Rank #4
- Digital Family Calendar: BSIMB digital calendar wall touch screen puts an end to your chaotic life. Designed for busy families, the digital calendar keeps you organised and in step with your family. Assign different colours and tasks to each family member to make family scheduling easier and more intuitive.
- Easy Setup and Auto-Sync: Plug in, connect to WLAN and auto-syn your electric calendar in minutes. Digital wall calendar compatible with Google calendar, iCloud calendar, Outlook calendar, Cozi calendar and Yahoo calendar. Add events directly on the device or through the ecalendar app. Electronic calendar stays current whether you're at work or traveling—no manual updates needed.
- All-In-One Home Assistant: Smart calendar builds habits and encourage independence with personalised chores. Display daily meal plan to reduce the daily ‘What's for dinner?’ stress. To-do lists keep track of everything you want. Turning chores into valuable achievements with stars and rewards, making life easier and more enjoyable.
- Manage Anytime Anywhere: BSIMB electronic calendar for family stay connected with the powerful ecalendar app. Access and manage your digital wall calendar anytime, anywhere with free features like stars & rewards, photo screensaver, chore charts, meals plans, to-do lists etc. Electronic planner paid features like Magic Import tailor advanced tools for users with special needs.
- Stay in Touch with Loved Ones: Share photos or videos from your phone to electronic wall calendar with app, instantly update your life moment, and keep in touch with your family, especially those who are far away; you can also surprise your smart calendar digital wall by sending him a wish card; it's also great for keeping tech-illiterate elders in touch with the youngsters.
| Setting | What it controls | What to change |
|---|---|---|
attachmentUploadDir |
Server directory where uploaded attachments are written | Replace the old absolute subfolder path with the new root-based filesystem path. |
smileys_dir |
Server directory containing smiley image files | Remove the old subfolder from the filesystem path. |
smileys_url |
Browser URL used to load smileys | Remove the old subfolder from the public URL. |
avatar_directory |
Server directory for uploaded avatars | Point it to the corresponding root-based filesystem directory. |
avatar_url |
Browser URL for avatar files | Point it to the root-based public URL. |
Each theme’s theme_dir |
Server directory for theme templates and assets | Replace the old installation path with the new absolute path. |
Each theme’s theme_url |
Public URL for theme resources | Remove the old subfolder from the URL. |
Each theme’s images_url |
Public URL for theme images | Remove the old subfolder and verify the resulting image directory. |
Change paths selectively
Search for the old subfolder in the relevant configuration values rather than performing an unrestricted replacement across the entire database. A global replacement could alter post text, private messages, code examples, or intentionally preserved external links. The goal is to update installation locations, not rewrite user content.
For filesystem settings, use the complete absolute path. For URL settings, use the root public address and omit the old folder. Keep the distinction clear: a value ending in /Sources belongs to the server filesystem, while a value beginning with the site’s scheme and hostname belongs in a URL field.
Free tools Windows power users keep installed
One-click scans. No signup required.
Account for every theme
SMF can retain settings for more than the currently selected theme. Update theme_dir, theme_url, and images_url for each installed theme that points to the old folder. Otherwise the default theme may work while a user-selected or administrator preview theme still requests files from the former location.
Use SMF’s repair utility if paths are wrong
If the board does not load, the administrator area is inaccessible, or you are unsure whether the main values were saved correctly, use the Simple Machines repair utility documented for this purpose. Its path and URL section exposes boarddir and boardurl for correction and warns that these values can cause major problems when incorrect.
Best Value
Use the utility to correct the root installation’s absolute directory and public URL, then save and reload the board. It is a repair step, not a substitute for moving files or updating the attachment, avatar, smiley, and theme values. If the utility cannot run because PHP fails before SMF starts, restore the backup Settings.php, correct the syntax and paths manually, and try again.
Verify the root installation before declaring success
Test from a private browser window as well as an existing session. This avoids mistaking a cached redirect or an old login cookie for a working migration.
Do these 3 things before closing this tab:
1Fix the driver behind crashes, sound loss and screen glitches2Clear out junk files and repair common Windows errors3Scan for outdated or missing drivers - takes under a minute- Root landing page: Open the root forum URL and confirm it does not redirect back to the old subfolder.
- Authentication: Sign in, sign out, and sign in again. Check that the session cookie is issued for the intended host and that logout returns to the root URL.
- Navigation: Open the board index, several boards, individual topics, pagination links, profiles, search, and any custom pages. Inspect links for the old subfolder.
- Theme assets: Switch between installed themes if possible. Confirm stylesheets, JavaScript, icons, and theme images load without 404 errors.
- Smileys: Open the posting screen and confirm the smiley palette displays images from the new URL.
- Attachments: Upload a small test attachment, submit it, download it, and open it from a second session. This verifies both the upload directory and the public URL.
- Avatars: Upload or change a test avatar and view it in a post and profile.
- Permissions: Confirm the web server can read the moved files and write to the directories SMF uses for uploads. Do not make the entire installation broadly writable just to silence an error.
- Old-path scan: View page source or use browser developer tools to look for requests containing the former subfolder. Also inspect redirects and image URLs, not just visible text.
Check the server’s error log while performing these tests. A missing file, permission denial, or PHP include error usually identifies which path still contains the old location.
Troubleshoot common failure symptoms
| Symptom | Likely cause | Action |
|---|---|---|
| The root URL redirects to the old subfolder. | $boardurl, a database URL, or a cached redirect still contains the old path. |
Correct $boardurl, inspect URL fields such as smileys_url, avatar_url, theme_url, and images_url, then clear browser and site caches. |
| A blank page or server error appears immediately. | Settings.php has a syntax error, an incorrect absolute path, or unreadable permissions. |
Restore the backup copy, verify PHP syntax and the real root path, and consult the server error log. |
| The forum shell loads but CSS or images are missing. | Theme directories or URLs still reference the subfolder. | Update every installed theme’s theme_dir, theme_url, and images_url; verify the files exist in the moved directories. |
| Attachments fail to upload or download. | attachmentUploadDir is wrong, the destination is not writable, or the attachment URL still uses the old folder. |
Correct the filesystem path, check write permission on that upload directory, and test a new attachment. |
| Avatars or smileys are broken. | The corresponding directory or URL was omitted from the database update. | Check avatar_directory, avatar_url, smileys_dir, and smileys_url separately. |
| Some themes work and others do not. | Only the active theme was updated. | Update the path and URL values for every installed theme, not just the default. |
| Links work for an administrator but not a normal visitor. | A cached session, permission-specific theme, or relative path is masking the broken setting. | Retest in a private window, switch themes, and inspect the generated links and requests. |
Rollback if the root move is not ready
- Put the old subfolder back in service by restoring the original
Settings.phpvalues and database export if database changes were made. - Keep the root copy untouched so you can compare files and settings rather than repeatedly moving the same data.
- Confirm the old URL loads, authentication works, and no uploads were created only in the new location.
- Review the failed test and correct one class of path at a time before attempting the migration again.
Do not delete the old installation until the root copy has passed the attachment, avatar, smiley, theme, login, and link checks. Once the new location is stable and a fresh backup exists, remove the old copy or protect it from public access so two active installations cannot diverge.
Self-service move or managed migration?
A competent administrator can perform this migration with file-manager or shell access and database access. Managed hosting assistance can be useful when you cannot obtain the absolute document-root path, cannot safely edit the database, or need someone to monitor logs and recover quickly. The technical work is the same either way; what changes is who performs it and who handles rollback.
Quick Recap
| Consideration | Self-service | Managed assistance |
|---|---|---|
| File access | You need reliable SFTP, shell, or file-manager access to move the complete SMF tree. | The provider performs or supervises the file move. |
| Database access | You export a backup and edit the relevant path and URL values yourself. | The provider handles the database update, subject to its change policy. |
| Rollback | You must retain backups and the old directory and decide when to restore them. | Ask in advance what backup and rollback procedure is included; no universal service guarantee is established. |
| Downtime | You choose the maintenance window and coordinate the final file and database changes. | The provider may coordinate the window, but exact downtime depends on the host and the state of the installation. |
| Post-move troubleshooting | You inspect SMF settings, browser requests, and server logs. | Support may help diagnose path, permission, and server errors; confirm the scope before starting. |
| Price and service level | No migration fee, but your time and risk are involved. | Pricing, response time, and guarantees vary; they are not established by the technical procedure itself. |
Final readiness checklist
- The root document directory contains the complete SMF installation and is not sharing space with an unintended active script.
$boardurluses the root public URL without a trailing slash.$boarddiris the absolute path to the root installation.$sourcediris the absolute path to that installation’sSourcesdirectory.- Attachment, avatar, smiley, and every theme path and URL no longer contains the old subfolder.
- The repair utility reports the correct board directory and URL, or those values have been verified manually.
- Login, logout, navigation, themes, images, smileys, avatars, and an attachment upload have all been tested from a clean session.
- The old installation remains available until the new one passes testing, and a current backup is stored outside the web root.
Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.




