News:

Join the Facebook Fan Page.

Main Menu

To the main Folder

Started by Antes, May 14, 2010, 11:25:48 AM

Previous topic - Next topic

Antes

Today i was doing some tests and saw i can easily change my index.php to forum.php , then i did, after that i decided to move my forum to main folder ( with WordPress )

i moved files changed settings.php then entered details for .htaccess ( SimpleSEF using ) , my blog working normal - but forum not , then we talk about it

RewriteRule (.*) index.php & RewriteRule (.*) forum.php
( we are not caring -forum sef really- just we want our forum works on same  dir with blog )

also i cant enter admin area "forum.php?action=admin" too. ( simply all actions on index.php )
using SMF2 RC3 , what is wrong with it ?

http://www.mmobrowser.com/index.php
http://www.mmobrowser.com/forum.php

kat

When an HTTP client (generally a Web browser) requests a URL that points to a directory structure, instead of an actual Web page within the directory, the Web server will generally serve a general page, which is often referred to as a main or "index" page.


Maybe there are some files pointing just to http://www.mmobrowser.com and they're looking for the default page, which would be index.php.


From what little I know, changing the name of index.php is asking for trouble.




I could well be wrong, though.

Antes


kat

Well, that's me confused, then.

Yağız...

$scripturl = $boardurl . '/index.php';
Find and change this on ./Sources/SimpleSEF.php

Antes

Quote from: Yağız... on May 14, 2010, 03:03:13 PM
$scripturl = $boardurl . '/index.php';
Find and change this on ./Sources/SimpleSEF.php

still same :/ ( just as arantor said - SSEF not working with forum.php ... )

Yağız...

Paste here your .htaccess.

Antes

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# BEGIN WordPress

<IfModule mod_rewrite.c>

RewriteEngine On

RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule . /index.php [L]

</IfModule>

# END WordPress

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) forum.php

Antes

Hmm, if we can redirect SSEF to read /smf/.htaccess ( and a question how to do it ? ) , it might be a fix xP ( right Yağız ^^ )

Yağız...

I never worked with .htaccess files, try to ask to SDime.

Advertisement: