Announcement

Collapse
No announcement yet.

Rewrite Rule - Help Needed

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

  • Rewrite Rule - Help Needed

    Hi,

    I'm needing some help if possible in doing a .htaccess rewrite rule. I've not got a clue where to start or whether its even possible.

    I've currently got vb advanced cmps installed in my domain root and vbulleting in a sub folder called /forum/

    I'm wanting to remove cmps from the domain root and and set up a new cms system. Its going to take me a few days to do all this.

    Is it possible to set up a rewrite rule so that I can from my IP address access the domain as normal but if anyone else tries to access a url in the root of the domain that are automatically forwarded to the forum sub directly. This would give me chance to change eveything over without having any downtime on my site.

    Hope someone can help me with this or point me in the direction of where I can work our how to do it myself.

  • #2
    This is easy to do, try the following:

    Code:
     
    RewriteEngine On
    RewriteCond %{REMOTE_ADDR} !^000\000.\.000\.00
    RewriteRule ^(.*)$ /forum [L]

    where 000.000.000.00 should be replaced by your ip.
    remember, the .htaccess file should be placed in web root.
    while(true){
    if(
    $someone->needsHelp() && $i->canHelp()) $post->help();
    if(
    $i->findBug()) $post->bug();
    }

    Comment


    • #3
      Originally posted by Dody View Post
      This is easy to do, try the following:

      Code:
       
      RewriteEngine On
      RewriteCond %{REMOTE_ADDR} !^000\000.\.000\.00
      RewriteRule ^(.*)$ /forum [L]

      where 000.000.000.00 should be replaced by your ip.
      remember, the .htaccess file should be placed in web root.
      ip mean cpanel ip or something else
      Mortal Kombat Nexus
      Pleae read before buying Ryan

      Comment


      • #4
        Why not install a test board and make all your changes there, saving the files and template edits to a project folder on your computer and then make the official change once you have everything mapped out and are ready to do the upgrade?

        Jim
        If my post was helpful to you, please take the time to register at my forum and ask a question you've always wanted to know about floors.
        www.TheFloorPro.com

        Comment


        • #5
          Originally posted by Tariq Rathore View Post
          ip mean cpanel ip or something else
          Your local machine ip.
          while(true){
          if(
          $someone->needsHelp() && $i->canHelp()) $post->help();
          if(
          $i->findBug()) $post->bug();
          }

          Comment

          Related Topics

          Collapse

          Working...
          X