Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on Strange redirect problem in the VPS & Dedicated forum
Hi, I have a blog at address http://www.lamnk.com/blog . A simple 301 redirect per index.php is placed at the domain root, i.e if visitors go ...

  1. #1
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39

    Strange redirect problem

    Hi,

    I have a blog at address http://www.lamnk.com/blog. A simple 301 redirect per index.php is placed at the domain root, i.e if visitors go to lamnk.com they will be redirected to my blog.

    Everything works perfect until recently ( i don't know exactly when ) i found out that now every other files in every other folders on the domain redirect to my blog, what i don't want to happen, of course. For example if you go to http://www.lamnk.com/test.html then my blog is opened instead of the html file

    Anyone has an idea ? Could it be because of .htaccess ?

    Regards.

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    How did you set up the redirect? If you post the appropriate line from your .htaccess file we might be able to decipher what's going on.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Thanks, i did some investigation in the htaccess file. There is a rule like this:
    Code:
    RewriteRule .* index.php
    Stupid me ! After delete that line all comes back to normal. Don't know why it's there though

  4. #4
    JPC Member
    Join Date
    Jan 2006
    Posts
    48
    Try using something more like WordPress's:
    Code:
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    Yours currently redirects everything to index.php. WordPress's allows the server to first check to see if there really is something there before redirecting.

  5. #5
    JPC Member lamnk's Avatar
    Join Date
    Jul 2007
    Posts
    39
    Yes i did have that setup in the blog directory. Just don't know why there is a strange redirect in root directory.

  6. #6
    Yeah, I know a LOT! Vin DSL's Avatar
    Join Date
    Mar 2003
    Location
    Arizona Uplands
    Posts
    10,775
    Quote Originally Posted by lamnk View Post
    I have a blog at address http://www.lamnk.com/blog... redirected to my blog.

    (I)f you go to http://www.lamnk.com/test.html then my blog is opened instead of the html file...
    Um...

    First link goes to your blog.

    Second link goes to "test test iosjdaoij".

    Did you fix this already
    DISCLAIMER Any resemblance between the views expressed above and those of the owners and operators of this system is purely coincidental. Any resemblance between these views and my own are non-deterministic. The existence of Vin DSL is questionable. The existence of views in the absence of anyone to hold them is problematic. The existence of the reader is left as an exercise in the second-order coefficient.

    No Guts, No Story! VinDSL © 2010

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •