iTechGuides is reader-supported. When you buy through links on our site, we may earn an affiliate commission. As an Amazon Associate I earn from qualifying purchases. Learn more
Need a server to try this on? Antihost offers Linux VPS plans with NVMe storage, full root access and a 14-day free trial.
To move a Simple Machines Forum (SMF) installation from /forum (or another subfolder) to your domain root, relocate the files, then change both SMF’s filesystem settings and every database path or URL that still contains the old folder. Moving files alone leaves attachments, themes, avatars, smileys, links, or login redirects pointing to the former location.
The safe sequence is: back up the files and database, make sure the root document directory is available, move the complete SMF tree, edit Settings.php, update the database path families, run SMF’s repair utility if necessary, and test normal visitor and administrator actions before deleting the old copy.
What changes when SMF moves to the root?
An SMF installation has two kinds of location data:
- Filesystem paths tell PHP where the forum files, source code, attachments, avatars, smileys, and themes exist on the server.
- Public URLs tell browsers where to request the forum pages and image files.
When the forum changes from https://example.com/forum to https://example.com, both kinds of value must lose the /forum segment. The web server’s document root must also point to the directory containing SMF’s index.php. A successful file transfer does not automatically rewrite configuration or database rows.
#1 Best Overall
- Powerful Turbo Fan:CAGIWIRU Electric Air Duster have reached speed up to 130000RPM,Can efficient remove dust and debris.With LED light and Three Adjustable Speed to meet with different cleaning tasks.
- With Attached USB C Fasting Charging cable.Charing 3 hours,Enjoy up to 240 minutes of use on the lowest setting, For third speed can use for 25mins.with four charging options to meet with your needs.
- Wide Application: attached 5 different nozzles,making it suitable for a variety of scenes, such as car,pet, pc, keyboards, and other electronic devices. It also serves for office and home clean duster.
- Handy Design & Portable:Cordless air duster electric nozzle is Light weight and small size, design and comfortable to hold and space saving, convenient to carry around. You can put it in your room or inside the car without taking up space.
- Economical &Reusable: Built durable materials with a long-lasting battery,our CAGIWIRU air duster it's a sustainable alternative to disposable air cans.
Simple Machines describes incorrect installation paths and URLs as capable of causing “big problems.” Its repair utility exposes the principal boarddir and boardurl values for correction. Treat the move as a configuration migration, not merely a file-management task.
Prepare before touching the installation
Confirm the destination document root
Find the document-root directory assigned to the domain in your hosting control panel. Many shared hosts call it public_html, but the actual absolute path can be different. The destination must be the directory that serves the domain’s root URL, not simply a directory with a similar name.
Free tools Windows power users keep installed
One-click scans. No signup required.
Check whether another application already occupies that directory. SiteGround’s SMF migration guidance warns that an existing script in the root can corrupt a migration. Remove, archive, or relocate the conflicting application only after you understand what currently serves the domain. Do not overwrite an active site without a rollback plan.
Record the old and new addresses
Write down the current forum URL, such as https://example.com/forum, and the intended root URL, such as https://example.com. Keep the protocol and hostname unchanged unless you are intentionally changing them in a separate project. The only URL component being removed here is the installation subfolder.
Arrange access and backups
You need file-manager or SFTP access to the current installation and destination, access to the SMF database through your host’s database tool, and permission to edit Settings.php. Create:
Rank #2
- Screen Cleaner is Your Screen’s New Bestfriend! - EVEO is proud to present a screen cleaner that’s perfectly suited for your TV. Meet your new screen cleaner, computer screen cleaner, laptop cleaner, iPad cleaner, Macbook,tv cleaner or any other electronic device. Our screen cleaner spray and wipe along with the included plush microfiber cloth, easily removes dust, fingerprints & other smudges on the screen’s surface. Clean effectively for a streak-free screen
- Gentle on your Screens - Our screen cleaner spray and wipes is compatible to be used even for the most sensitive LCD, LED, CRT, and OLED screens in proper use. Be at ease knowing that this product is compatible with all the major brands: LG, SONY, Samsung, Sharp, iPad, iPhone, Android screens, Kindle, PC monitors - we’ve got you covered! Can be used as LCD screen cleaner, tv cleaner, smart tv screen cleaner, and more
- Premium Super Soft Plush Microfiber Cloth - Included in this efficient screen cleaning kit. This screen cleaner spray and wipe has our signature plush microfiber cloth specially designed to comply with screens and monitors and leave them streak-free. Has been shown to effectively absorbs stubborn stains, zero streaks, and no fiber shedding. Always use this together with our screen cleaner for the best results
- Easy-to-Use Screen Cleaner Kit + microfiber cleaning cloth - The EVEO Screen Cleaning Kit will easily be your new favorite tool when it comes to taking care of the things you love most, quick and easy solution for a streak-free screen. Simply screw on the sprayer gun on the screen cleaner bottle. Spray the cleaning liquid onto the microfiber cloth, then wipe the screen until desired cleanliness & shine is achieved.
- Quality Screen Care Kit Worth Purchasing - Enjoy a convenient Screen Cleaner anytime, anywhere you need it. Your satisfaction is our top priority. We stand behind the quality of our products and that’s why, you shouldn’t be worrying at all. We manufacture the Best Screen Cleaner. and can be used for laptop cleaning kit, laptop screen cleaner, tv screen cleaner for smart tv. MacBook screen cleaner, monitor cleaner or screen cleaner spray for electronic devices with microfiber cleaning cloth
- A complete copy of the current SMF files, including hidden files such as
.htaccesswhere applicable. - A database export made before any path edits.
- A note of the current values of
$boardurl,$boarddir, and$sourcedir. - A list of custom themes and any attachment, avatar, or smiley directories stored outside the main tree.
Keep the backup and, if storage allows, the original subfolder intact until the root installation passes all tests. Schedule the move when you can briefly prevent new posts or uploads; otherwise, activity during the copy can leave the database and files out of sync.
Move the SMF files
- Open the current installation. Locate the directory that currently serves the forum, for example
public_html/forum. The directory should contain SMF’sSettings.php,Sources, theme directories, and the front-controller files. - Preserve the complete tree. Include hidden files, custom themes, language files, and any local modifications. Do not copy only
index.phpor only theSourcesdirectory. - Place the files directly in the document root. SiteGround’s instructions summarize this as moving all files from the current SMF folder into
public_html. After the operation, the forum’sindex.phpshould be directly under the root directory, not under a newpublic_html/forumfolder. - Retain permissions. Keep the permissions and ownership that allowed the old installation to run. If your file manager offers “move,” use it within the same account; if you must download and upload, verify that no files were skipped.
At this stage the files are in their new physical location, but SMF still contains the old paths. Do not judge the migration by opening the root URL yet; update the configuration first.
Edit Settings.php
Open the root copy of Settings.php in a plain-text editor. Change the three core variables so they describe the new location.
| Variable | Required value after the move | Important detail |
|---|---|---|
$boardurl |
The public root URL, for example https://example.com |
Remove the old subfolder and do not leave a trailing slash. |
$boarddir |
The absolute filesystem path to the root installation, for example /home/account/public_html |
Use the real server path; do not use only . or a URL. |
$sourcedir |
The absolute path to the root installation’s Sources directory, for example /home/account/public_html/Sources |
The capitalization must match the directory on a case-sensitive server. |
A resulting block may look like this (the hostname and filesystem path are examples; use the values assigned to your account):
$boardurl = 'https://example.com';
$boarddir = '/home/account/public_html';
$sourcedir = '/home/account/public_html/Sources';
Do not put a trailing slash on $boardurl. Filesystem variables are different: they must identify directories on the server, and the source path must end in the actual Sources directory. Save the file without changing its PHP syntax or character encoding.
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 →Rank #3
- 【Large size】:Measuring 800 x 300 mm/ 31. 5×12 inches, which is wider and taller than others. Large mouse pad can perfectly fit your keyboard and mouse of any size, and there is also ample space for peripherals such as phones, tablets, etc.
- 【LED backlight mouse pad】:Blade Hawks RGB mouse pad provides 7 static modes and 7 dynamic modes will give you the options you are looking for. Power-off memory function remembers the last lighting mode you selected. The super glow fiber Chroma will give you a colorful gaming setup that you want.
- 【Anti-slip rubber base】:Made from Natural rubber, this gaming mousepad will firmly grip your desktop, allowing you to enjoy the ultimate precision in the games you are most passionate about. It also comes with a texture that enhances this ability even further.
- 【Smooth and waterproof surface】: Micro-textured cloth surface, for extremely precise mouse control and a smooth movement. When liquid splashes on the gaming mouse pad, it forms water droplets and slides down. Will not delay your work or gameplay.
- 【Plug and play】: This mouse and keyboard pad is powered by USB, plug and play, no driver required. One button control light modes. Press one time to change the lighting mode, press twice to change the brightness, press and hold about 3 seconds turn ON/OFF.
Update database paths and URLs
SMF stores additional locations in the database. Use your host’s database administration tool to locate the SMF settings and replace the old subfolder in every affected value. Preserve the rest of each path; remove only the segment that represented the old installation directory.
| Setting family | What must change | Result to verify |
|---|---|---|
attachmentUploadDir |
Filesystem directory used for uploaded attachments | Uploads resolve to the directory now used by the root installation. |
smileys_dir |
Filesystem directory containing smiley images | Smiley files are found on disk. |
smileys_url |
Browser URL for smiley images | Rendered smileys request the root-based URL. |
avatar_directory |
Filesystem directory for uploaded avatars | New and existing avatars can be read. |
avatar_url |
Browser URL for avatar images | Avatar requests no longer include the old folder. |
Theme theme_dir |
Filesystem directory for each installed theme | Every theme, including custom themes, points to its new directory. |
Theme theme_url |
Public URL for each theme’s files | CSS, JavaScript, and theme assets load from the root-based URL. |
Theme images_url |
Public URL for each theme’s images | Buttons, icons, and other theme images display correctly. |
Check every theme row, not only the default theme. A forum can appear fixed while the default theme works and a user-selected custom theme still points to /forum. Likewise, a successful page load does not prove that attachment and avatar directories are writable and correctly addressed.
Make a fresh database export after saving the corrected values. That gives you a known-good rollback point separate from the pre-move backup.
Use SMF’s repair utility when paths are wrong
If SMF displays a configuration error, cannot load normally, or still uses the old location, run the repair utility supplied with SMF. Its settings page is designed to correct installation paths and URLs and exposes boarddir and boardurl.
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 reinstallCrashes, No Sound, or Screen Glitches?
Random freezes, missing sound and display glitches usually trace back to one bad driver. Find and replace yours safely.Free scan · under a minuteUse the utility to confirm the same values entered in Settings.php: the root public URL without a trailing slash and the absolute filesystem path to the root installation. Save the correction, then reload the forum in a private browser window. The utility is a recovery aid, not a substitute for updating the attachment, avatar, smiley, and theme values in the database.
Rank #4
- 【Softer and More Comfortable】Vaydeer wrist rest has unique diamond pattern, which is the combination of softness and aesthetics. The materials of wrist rest are improved into higher quality memory foam and covered with silky smooth lycra. The computer wrist rest makes you as comfortable and cushiony as like rest your wrists on clouds.
- 【Ergonomic Wrist Saver】The wrist rests for keyboard and mouse comes with a 17.32×3.15×0.83 inch keyboard wrist pad and a 5.94×3.15×0.83 inch mouse wrist support. Based on ergonomic design, the unique concave shape is the perfect fit for your wrist joints. The wrist rest pad fits most computer keyboards and laptops, improve hand and wrist posture, release your wrist and arm stress.
- 【Non-Slip Rubber Bottom】Featuring an anti-skid silicone base on the bottom, this wrist keyboard support stays firmly in place on your desk, preventing the padding from sliding around, ensuring stable and consistent wrist support during extended computer sessions.
- 【Better Experience & Pain Relief】Our keyboard arm rest is beneficial to alleviate the soreness caused by direct contact and friction between your arm and a hard desk surface, reducing the risk of wrist fatigue or carpal tunnel. The soft texture of memory foam can evenly distribute the pressure around your wrists and provide good support with just enough give.
- 【Helpful in Multiple Scenarios】Whether you're working, studying, writing, typing, gaming, this keyboard and mouse rest combo is an essential accessory to add comfort and support to your hands and wrists. It’s also a great gift for men, women, family, friend, coworker, gamer, teacher, etc.
If the administrator area cannot be reached, return to the file and database backups rather than repeatedly changing random values. A typo in an absolute path can prevent SMF from loading; restoring the known-good files and database gives you a controlled starting point.
Test the root installation systematically
Test as an anonymous visitor and as a normal member. Complete the following checks before removing the old directory:
- Open the root URL. The home page should load at the root address, not redirect to the old subfolder.
- Sign in and sign out. Confirm that the login form, session creation, logout action, and post-login redirect remain on the root URL.
- Open boards and topics. Visit several boards, a topic with replies, and pagination links. Inspect the address bar for any remaining old-folder segment.
- Check the active theme. Verify layout, CSS, JavaScript-driven controls, icons, and images. Switch to another installed theme if the forum offers that option.
- Render smileys and avatars. Open posts containing smileys and profiles containing avatars. A broken image indicates a URL or directory value still needs correction.
- Upload and download an attachment. Test a new upload as a permitted member, then download it from the post. This exercises both the configured upload directory and the public retrieval path.
- Inspect administration pages. Open configuration and theme-management screens to catch source-directory or permission errors that a public page may not reveal.
- Search for the old path. Follow menus, buttons, image requests, and representative internal links. Any generated URL containing the former subfolder identifies a remaining URL setting or custom template reference.
Keep browser developer tools or the page source available while testing images and scripts. A page that looks mostly correct can still be issuing requests to the old directory.
Do these 3 things before closing this tab:
1Repair Windows errors before they cause bigger problems2Fix the driver behind crashes, sound loss and screen glitches3Clear out junk files and repair common Windows errorsTroubleshoot by symptom
The root URL shows a server error or a blank page
Recheck $boarddir and $sourcedir first. They must be absolute paths to the new root and its Sources directory. Confirm that the moved files actually exist at those paths and that the file ownership and permissions match the working installation.
SMF redirects to the old subfolder
The most likely cause is an unchanged $boardurl or a database URL value. Correct $boardurl so it contains the root URL without a trailing slash, then inspect smileys_url, avatar_url, and each theme URL for the former segment.
Best Value
- 【No Drill Mounted】Cable management tray can be assembled in as little as 3 minutes or less-simply. Side clips easily clampe the edge of desk, pass through the holes on the sides, and secure excess cables with baskets. Desk cable management supports inward or outward installation to meet your needs in different scenarios, and provides you with great convenience when collecting and organizing wires.
- 【Rubber Pad Protects Desk】Wire organizer under desk built-in soft rubber pads on the clamp protect your desk from scratches, so you will not damage your furniture or office.
- 【Sturdy and Beautiful】Cord management under desk is made of high-quality carbon steel and holds about 15 lbs. The wire basket has 2 holes on each side of the tray to enable your cables to pass freely. Cable baskets are suitable for desk thickness use from 0.4" to 2.4".
- 【Space Saving & Keep Organized】Desk cable management tray holds all your power cords, outlet strips, USB hubs and computer transformers hidden from your feet, and the data cables will not enter the vacuum cleaner to keep your desk clean and tidy. Desk wire organizer is also suitable for use in the kitchen and outdoors.
- 【Reduce Safety Risks】Cable tray under desk keeps all plugs away from your kids, no more worry about tripping. Using 2 holes wire tray saves extra space, helps you easily cabling and wire protection. The mesh design is not easy to accumulate dust, but avoids safety accidents caused by messy wires.
Pages load, but images or theme styling are missing
Check the theme’s theme_url and images_url, then check smileys_url and avatar_url. Also confirm that the corresponding directories moved with the rest of the installation. A custom theme can retain old values even when the default theme is correct.
Attachments fail to upload or old attachments are unavailable
Verify attachmentUploadDir and make sure the directory exists at the configured absolute path. If attachments were stored outside the former SMF folder, do not move them blindly; set the database value to their actual current location and test both a new upload and an existing file.
What’s actually slowing this PC down?
Pick the symptom - the matching free tool is one click away.
The repair utility reports incorrect settings
Use its displayed boarddir and boardurl fields to correct the root values, save, and retest. If the utility itself cannot run, restore the pre-move backup, confirm the document root, and repeat the edit with the exact filesystem path supplied by the host.
Rollback plan
Do not delete the old subfolder immediately. If testing reveals a serious problem, place the original files back in their previous directory, restore the pre-move database export, and point the domain’s document root back to the original location if you changed it. Restore both the files and database together; mixing old files with newly edited settings can create a second, harder-to-diagnose state.
After the restored forum works, take another backup before attempting the move again. Correct one class of value at a time—document-root placement, Settings.php, then database paths—so a failure has an identifiable cause.
Self-service move or managed assistance?
The technical work is the same, but the access and responsibility differ. Choose the route that matches your access and rollback needs.
| Consideration | Self-service migration | Managed migration assistance |
|---|---|---|
| File access | You use the hosting file manager, SFTP, or shell to copy and verify the complete SMF tree. | The provider performs or guides the file transfer and checks the destination. |
| Database access | You export the database and edit the SMF path and URL values yourself. | The provider handles the export, edits, and import under an agreed procedure. |
| Backup and rollback | You create backups, retain the old directory, and decide when to restore. | The provider may coordinate backups and restoration; confirm exactly what is included before work begins. |
| Downtime control | You schedule the copy and temporarily limit posting or uploads. | The provider coordinates the maintenance window and cutover with you. |
| Post-move troubleshooting | You diagnose broken paths using the checklist and repair utility. | The provider investigates path, permission, and theme problems within the support scope you purchased. |
Ask any managed service to state its backup retention, rollback procedure, access requirements, maintenance window, and post-move troubleshooting scope in writing. The core SMF settings still need to be validated after the provider reports completion.
Quick Recap
Completion checklist
- The domain’s root document directory is empty of conflicting applications or has a documented coexistence plan.
- A complete file backup and database export exist.
- All SMF files, hidden files, custom themes, and required asset directories are in the root.
$boardurlis the root URL with no trailing slash.$boarddirand$sourcedirare absolute paths to the new locations.attachmentUploadDir, smiley paths, avatar paths, and every theme directory and URL no longer contain the old subfolder.- The repair utility shows the same root values, if it was needed.
- Visitors can browse boards and topics, members can sign in and out, themes and images load, avatars and smileys render, and attachments upload and download.
- Representative links and generated requests contain no reference to the former subfolder.
- The old copy remains available until these checks pass and a fresh post-move backup is complete.
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.

