Change board directory or changing url used?

Started by GenesisMUGEN, August 12, 2014, 12:53:48 PM

Previous topic - Next topic

GenesisMUGEN

Hi, i'm kinda new to this stuff but not PAINFULLY new.

So this is my first site blah blah blah and i have SMF installed, but its under a folder. This isn't an issue (as far as I know) so the directory is domainname.com/forum/

No problem. BUT, if someone goes to the domain without the added '/forum' they can view everything there. I just wanted to know how to make it autoredirect users to the forum. I looked up my problem and i tried making the .htacess file but that didnt work.

Do I need to move the entire forum into the root (i'd rather not) or did i just do something wrong when i made the .htacess file?

Thanks in advance.

kat

If you attach the .htaccess file you used, we might be able to tell you. ;)



Redirect /index.php http://yoursite.com/forum/

Would that do it? (Modified, to suit, obviously)

GenesisMUGEN

Thanks for the welcome.  ;D

I tried what you suggested but it didn't work. I think it was due to the /index.php (tried without and didnt work either)

The way my stuff is set up/looks when you go to domainname.com(obviously not the actual site) directly is
Index of/
- .ftpquota
- forum


Attached the previous .htaccess file :)
Edit: I actually just noticed i put .com instead of .us in the htaccess file but changing that didnt help either

kat

Try this:

RewriteEngine on
RewriteCond %{HTTP_HOST} ^([^.:]+\.)*http://www.tier-1.com\.?(:[0-9]*)?$ [NC]
RewriteRule ^(.*)$ http://www.tier-1.com/forum/index.php [R=301,L]


I *think* I have that right, if the URLs are correct.

GenesisMUGEN

I adjusted the url (its a .us domain not .com) but still nothing.

Do i need to modify the permissions on the file perhaps?

kat

The .htaccess file IS in the root...?

Actually, having just thought about it, having just seen your forum, I'd just move everything into the root, myself.

Sure, it's a bit of a hassle and you'll need to do this:

http://wiki.simplemachines.org/smf/Repair_settings.php

But, I have a feeling that doing that will save you some hassles, later on...

GenesisMUGEN

yep, right there (I only see it via ftp which is how its supposed to be right?)

I guess I can try that, thanks for the help and patience.

kat

#7
Yeah. Use FTP to download everything, then upload it all.

Although... CPanel's File Manager MIGHT let you move (Cut/paste?) things from one place to the other, without needing to download/upload.

MUCH quicker, if you can do that.

Arantor

Careful with attachments if you use FileZilla.

kat

Just checked. File manager DOES allow moving of directories and files, as does the legacy one, if you have it on your CPanel.

Bit messy, though, from what I can see.

GenesisMUGEN

I did it through cPanel then used the repair settings.

Everything seems to be as it was before, but moved obviously.
I suppose this is solved. Thanks a TON for the help.  :)

kat


Advertisement: