htaccess for php files [easy question]

Discussion in 'Apache' started by basketmen, May 17, 2007.

  1. #1
    Hi guys
    because another script settings in my htaccess some php files in my root cannot read by browser

    for example

    www.domain.com/file1.php
    www.domain.com/file2.php

    what is htaccess for php files so browser can read?

    another example
    folder in my www.domain.com/folder1/ can not read too if i not create htaccess under that folder and using /rewritebase folder1 in the htaccess


    any one can answer :D
    i need this
     
    basketmen, May 17, 2007 IP
  2. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #2
    Post your current .htaccess code.
     
    Nintendo, May 17, 2007 IP
  3. basketmen

    basketmen Well-Known Member

    Messages:
    837
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    130
    #3
    no, what i am ask here just basic htaccess rule for php files
    if i open these files in browser they will redirect to anoter page, i just need they not redirect and open like another normal php files

    www.domain.com/file1.php
    www.domain.com/file2.php




    i try add this to htaccess but its not works, what is the right rule?

    RewriteRule ^ file1.php
    RewriteRule ^ file2.php





    This is just basic i believe
     
    basketmen, May 17, 2007 IP
  4. Nintendo

    Nintendo ♬ King of da Wackos ♬

    Messages:
    12,890
    Likes Received:
    1,064
    Best Answers:
    0
    Trophy Points:
    430
    #4
    What are you trying to do with the code?? That's not even close to correct! If you're trying to change URLs, post an example of the original and new URLs.

    If that's you're full .htaccess, those two lines, then it might be going bonkers!
     
    Nintendo, May 17, 2007 IP