Can the extention (content.php) bee changed?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Faceshqip
    Member
    • Oct 2009
    • 55
    • 3.8.x

    Can the extention (content.php) bee changed?

    Can the extantion of (content.php) can bee changed to something alls for exampel (portal.php) or something als..
  • Tla
    New Member
    • Oct 2009
    • 9

    #2
    Originally posted by Faceshqip
    Can the extantion of (content.php) can bee changed to something alls for exampel (portal.php) or something als..

    For what purpose?

    Comment

    • Shelby
      Senior Member
      • May 2004
      • 928

      #3
      Maybe, you want it to be index.php in your root directory.

      Comment

      • nfn
        Senior Member
        • Apr 2006
        • 100

        #4
        and can be placed outside forum root?
        I use site.com/index.php (vBa) and site.com/forum

        To replace vBa I would like to have /forum/content.php moved to /index.php

        Comment

        • McCarroll21
          Member
          • Sep 2006
          • 90
          • 4.1.x

          #5
          Originally posted by nfn
          and can be placed outside forum root?
          I use site.com/index.php (vBa) and site.com/forum

          To replace vBa I would like to have /forum/content.php moved to /index.php
          Just install everything in your root directory. You can configure where index.php points. By default it points to content.php.

          Put everything in the root directory so you can have it like this...

          domain.com/index.php -- points to whatever you configure
          domain.com/content.php -- CMS
          domain.com/forum.php -- Forums
          domain.com/blog.php -- Blogs

          Comment

          • punchbowl
            Senior Member
            • Nov 2006
            • 3903
            • 4.0.x

            #6
            Originally posted by Shelby
            Maybe, you want it to be index.php in your root directory.
            That's exactly what I want. I don't want to disturb my existing forum structure. Hopefully this is possible.

            There's lots of posts in the forum pointing to other threads that contain the whole url so moving the forum directory isn't an option

            Comment

            • thincom2000
              Senior Member
              • Mar 2007
              • 153

              #7
              Originally posted by punchbowl
              That's exactly what I want. I don't want to disturb my existing forum structure. Hopefully this is possible.

              There's lots of posts in the forum pointing to other threads that contain the whole url so moving the forum directory isn't an option
              This isn't a coding forum, but you can always accomplish this in .htaccess using
              Code:
              RewriteEngine On
              RewriteBase /
              RewriteRule ^index.php$ forums/content.php [L,QSA]
              Then you need to have a plugin check the $_SERVER['PHP_SELF'] to 301 from forums/content.php if we accessed it directly rather than through index.php.
              Code:
              if (THIS_SCRIPT == 'cms' AND strpos($_SERVER['PHP_SELF'], 'index.php') === false)
              {
              vb4_301_redirect_function_if_one_exists_else_write_one(str_replace('forums/content.php', 'index.php', $_SERVER['REQUEST_URI']));
              }
              - the makers of VaultWiki

              Comment

              widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎