how to setup root folder to serve vanilla folder with .htaccess and hide vanilla folder in URL ?
so im trying to serve vanilla from a sub-folder root(home) >forumfolder(subfolder) and hide forumfolder name from the URL using .htaccess
im trying to do as with wordpress:
"Many people want WordPress to power their site's root (e.g. http://example.com) but they don't want all of the WordPress files cluttering up their root directory. WordPress allows you to install it into a subdirectory, but have your blog exist in the site root."
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
i did try to put this in .htaccess for the webroot (keep the .htaccess in the forum folder intact)
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} -d RewriteCond %{REQUEST_FILENAME} -f RewriteRule . - [L] RewriteRule ^(.*)$ /forumfolder $1 [QSA,L] </IfModule>
Changing forumfolder to the folder name. there is no index.php or index.html, etc at all in the web root.
i did add these values to /forumfolder/conf/config.php
$Configuration['Garden']['WebRoot'] = '/forumfolder'; $Configuration['Garden']['StripWebRoot'] = 'TRUE';
In /forumfolder/.htaccess i did change it to
<IfModule mod_rewrite.c> RewriteEngine On # Certain hosts may require the following line. # If vanilla is in a subfolder then you need to specify it after the /. # (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum) RewriteBase /forumfolder RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php\?p=$1 [QSA,L] </IfModule>
i clear all the *.ini files in /forumfolder/cache
its working for the home page of the vanilla but if i click on a Discussions it gives a Not Found error.
Comments
Make sure you this in config.php as well
$Configuration['Garden']['RewriteUrls'] = TRUE;
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
its in there but still having the same error
You should remove these because they are not helping troubleshoot.
$Configuration['Garden']['WebRoot'] = '/forumfolder';
$Configuration['Garden']['StripWebRoot'] = 'TRUE';
Is your Forum in a folder called /forumfolder ? Or is it /forum ? or is it in the root and it is / ?
I mean it is hard to guess if you don't give a real address… this is all a waste of time if it is hypothetical …
You can always send the address via private message if it makes you real better..
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
send you a PM .
i removed the
$Configuration['Garden']['WebRoot'] = '/forumfolder'; $Configuration['Garden']['StripWebRoot'] = 'TRUE';
main page is showing as root address now but not if u click on any other link on the page. then it shows the /forumfolder folder.
If you do not want to use a subdirectory, then install it in the root . That simple. Why make an extra folder for the forum named /vanilla or whatever when you already have a subdomain called forum.yoursite.com ???
Just install the software directly in forum.yoursite.com and NOT in forum.yoursite.com/vanilla if you do not want the vanilla or any other name in the url...
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌
i have 2 forums working on that URL of forum.yoursite.com on root is phpbb vanilla is on a sub-folder
phpbb will be removed in time.
https://vanillaforums.org/discussion/comment/202822/#Comment_202822
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
i did try evry thing on that post and it all so gives the same result:
its working for the home page of the vanilla but if i click on a Discussions it gives a Not Found error.
seams like theirs no way to get this done other then installing vanilla on root.
@raykai
Vanilla definitely doesn't need to be in root under normal circumstances.
Do you get a Vanilla 404 or a server 404?
Could you post your .htaccess file?
My themes: pure | minusbaseline - My plugins: CSSedit | HTMLedit | InfiniteScroll | BirthdayModule | [all] - PM me about customizations
VanillaSkins.com - Plugins, Themes and Graphics for Vanillaforums OS
He has two apps installed in the root. A pbb forum and vanilla. He wants to be able to run both apps in the root. I explained that is not possible because each app has an htaccess file and that will cause problems.
You can only have one htaccess file per directory. So he wants to know how to hide or remove the name of the subdirectory so it would appear to be in the root.
❌ ✊ ♥. ¸. ••. ¸♥¸. ••. ¸♥ ✊ ❌