Advertisement:

Author Topic: [ask] Installing Osclass in different directory folder  (Read 6794 times)

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #15 on: September 11, 2013, 12:04:22 am »
Have you tested Teseo ?

Fatal error: Call to undefined function sample_map() in ..\site\oc-content\themes\modern\main.php on line 108

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [ask] Installing Osclass in different directory folder
« Reply #16 on: September 11, 2013, 12:18:02 am »
Yes, this I had tested myself, it's a very simple redirect.

That error seems unrelated to this matter. ??? Are you sure it won't appear when you enter straight to the Osclass folder (http://your_domain/osclass)? ???

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #17 on: September 11, 2013, 01:07:49 am »
Teseo, yes it's not related to this matter, sorry.

have you visited my www.motohood.com Teseo?
I put my WP installation in folder /site.
But in root folder, I created index.php file to call all the wp script in folder /site.
So people just go to www.motohood.com to access the blog.
script in root folder accesses sub folder /site to display all blog
but people don't see www.motohood.com/site/bla-bla-bla . it appears www.motohood.com/bla-bla-bla
Can you see /site in your browser's url address? This is not only redirecting url to sub folder /site

my html source code from the browser:

Code: [Select]
....
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" type="text/css" media="all" href="http://motohood.com/site/wp-content/themes/greenchilli/style.css" />
<link rel="pingback" href="http://motohood.com/site/xmlrpc.php" />
.....

teseo

  • Hero Member
  • *****
  • Posts: 6169
Re: [ask] Installing Osclass in different directory folder
« Reply #18 on: September 11, 2013, 01:47:28 am »
Hmm... I see.

index.php
.htaccess

Could you post here the contents of the .htaccess of www.motohood.com? I think that might be a redirection using mod Rewrite inside the .htaccess... ???

arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #19 on: September 11, 2013, 08:22:19 pm »
Hi,
there is no change with .htaccess file.  I just duplicated it from wp installation folder

here is the code

Code: [Select]
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

# END WordPress


arzidan

  • Newbie
  • *
  • Posts: 15
Re: [ask] Installing Osclass in different directory folder
« Reply #20 on: September 12, 2013, 10:38:27 am »
any member can help me through this? expert member in wp dev?

trains58554

  • Osclass contributor
  • Hero Member
  • *****
  • Posts: 3642
  • osCanyon, the class of Osclass
Re: [ask] Installing Osclass in different directory folder
« Reply #21 on: September 25, 2013, 12:13:41 am »
Hi arzidan,

This is possible with Osclass. I have tried it quite a while ago but I just tried it again.

What you have to do is install Osclass in a sub folder then copy the index.php file back to the root folder then edit the index.php on line 22

This is the default code
define('ABS_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . '/');

Change it like so

define('ABS_PATH', dirname($_SERVER['SCRIPT_FILENAME']) . '/sub-folder/');

change the word sub-folder to what ever you named your sub folder. Then when someone comes to your site using your root url they will see your site.

Jay

Jay