Announcement

Collapse
No announcement yet.

Can the extention (content.php) bee changed?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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..

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

    For what purpose?

    Comment


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

      Comment


      • #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


        • #5
          Originally posted by nfn View Post
          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


          • #6
            Originally posted by Shelby View Post
            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


            • #7
              Originally posted by punchbowl View Post
              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...
              X