HTACCESS problem will pay to get it right!

Discussion in 'Programming' started by ronmac, Jun 23, 2008.

  1. #1
    I have a proxy listing script and also a blog

    http://www.proxy.biz and the blog is on http://www.proxy.biz/blog

    anyhows the htaccess has the content as:

    RewriteEngine On
    RewriteRule ^advertise/? index.php?action=advertise
    RewriteRule ^contact/? index.php?action=contact
    RewriteRule ^contact/? index.php?action=contact
    RewriteRule ^proxy/(.*)? index.php?action=proxy&proxy=$1
    RewriteRule ^submit/? index.php?action=submit
    RewriteRule ^paypal/? index.php?action=paypal
    RewriteRule ^viewed/? index.php?action=viewed

    <IfModule mod_rewrite.c>

    I have also added a blog in www.proxy.biz/blog and have updated the permlinks - its then asks me to update the htaccess with this:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    when i put in either or try to put both the part of the htaccess in the file i can either reach my blog perm posts and then not reach my internal links on the main proxy.biz main page?? i hope this makes sense - driving me crazy.

    hopefully someone is laughing at this and will post an easy solution :)

    if someoine knows a quick way etc please pm me or post, i would be glad to do a donation
     
    ronmac, Jun 23, 2008 IP
  2. ronmac

    ronmac Well-Known Member

    Messages:
    2,093
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    125
    #2
    surely there is someone out there that can give me a hand in fixing this problem
     
    ronmac, Jun 23, 2008 IP
  3. saurabhj

    saurabhj Banned

    Messages:
    3,459
    Likes Received:
    61
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I can do this. Please PM me with the details..
     
    saurabhj, Jun 23, 2008 IP
  4. ronmac

    ronmac Well-Known Member

    Messages:
    2,093
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    125
    #4
    thanks - will pm you now
     
    ronmac, Jun 23, 2008 IP
  5. derrick98324

    derrick98324 Active Member

    Messages:
    55
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #5
    did you find someone to solve the problem yet?
     
    derrick98324, Jun 23, 2008 IP
  6. Bryce

    Bryce Peon

    Messages:
    1,235
    Likes Received:
    93
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Put the .htaccess file for the blog in the /blog/ directory and the other .htaccess in your root directory. That should fix your problem right there. Also, you might want to add a

    RewriteBase /

    in between these two lines

    RewriteEngine On
    RewriteRule ^advertise/? index.php?action=advertise

    like this...

    hope this helps.
     
    Bryce, Jun 23, 2008 IP