News:

Join the Facebook Fan Page.

Main Menu

Directory Change

Started by alcapone 4428, June 09, 2012, 09:03:17 PM

Previous topic - Next topic

alcapone 4428

This isn't an advertisement, I just want this to change.

So that is the link to my forums: http://www.survivalpkz.com/forums/index.php

How can I make it so it's: http://www.survivalpkz.com/forum.php

Thanks.

MrPhil

If the basic problem is that you don't want visitors to have to type in "/forums", the best thing to do is a URL rewrite (assuming you're on an Apache server -- maybe something similar can be done on IIS). In /.htaccess add:
RewriteEngine On
RewriteCond  %{REQUEST_URI}  !^/forums  [NC]
RewriteRule  ^(.*)$  /forums/$1  [L]


Later on, when you add a "landing page" in / with a link to your forum, you can remove those lines. Since you're not moving your forum, you won't lose any member bookmarks or search engine listings.

alcapone 4428

My forum is empty, no one is a part of it. I just want it how I said, not the confusing stuff you said.

Arantor

There is no good way to do that. Moving the folders is easy enough but changing from index.php to anything else causes problems for your forum, and is strongly best avoided.

Why do you feel you need to move it?


@MrPhil: that isn't what he's asking, it looks like a move up a level and changing the base page from index.php to forum.php, so that presumably index.php and perhaps other parts of the site can 'co-exist', though honestly that's not really a great organisational tactic.
Holder of controversial views, all of which my own.


alcapone 4428

My friend has it done and it looks alot neater. Can you please tell me how to do it.

Arantor

I'm not going to tell you how to do it. It does not look neater, and it causes other problems with SMF to do so, some of which are search engine related.

(Other forums do something different and you get to use a URL style nearer to what you're after. Failing that, why not ask your friend how he did it?)
Holder of controversial views, all of which my own.


alcapone 4428

Because I can just ask here and he isn't on. Also, I want to know something just don't be a dick and tell me?

Arantor

I honestly don't care whether you want to know something or not, the bottom line is I'm not prepared to tell you because it's not good for your forum. It will break things, and fixing those things will break other things. Why should I tell you how to screw your forum up?
Holder of controversial views, all of which my own.


Colin

Quote from: Skyro on June 09, 2012, 10:23:39 PM
Also, I want to know something just don't be a dick and tell me?
No need to get angry. Why would you want to do something that will break your forum?
"If everybody is thinking alike, then somebody is not thinking." - Gen. George S. Patton Jr.

Colin

Jade Elizabeth

How about this?
http://custom.simplemachines.org/mods/index.php?mod=636

As for changing the directory simply move the forum to said directory and download Repair_Settings from the tools section:
http://download.simplemachines.org/?tools

Run and save it and then go into the themes and layout section of your admin centre and then click settings and then click "attempt to reset all themes".
Once proud Documentation Writer and Help Squad Leader | Check out my new adult coloring career: Color With Jade/Patreon.

Advertisement: