+ Reply to Thread
Page 4 of 5
FirstFirst ... 2 3 4 5 LastLast
Results 31 to 40 of 46

Thread: .html or not?

  1. #31
    Code Slinger chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5's Avatar
    Join Date
    Mar 2008
    Posts
    7,023
    Blog Entries
    1

    Re: .html or not?

    Yeah I figured it was wrong, I found it on some web site, I know not to go to that site anymore.

    so my .htaccess now appears like this:

    Code:
    ErrorDocument 400 /errors/400.html 
    ErrorDocument 401 /errors/401.html 
    ErrorDocument 403 /errors/403.html 
    ErrorDocument 404 /errors/404.html 
    
    
    AddType text/html .shtml 
    AddHandler server-parsed .shtml
    Options Indexes FollowSymLinks Includes
    DirectoryIndex index.shtml index.html
    
    
    order allow,deny
    deny from 123.45.6.7
    deny from 012.34.5.
    allow from all
    
    Redirect /docs/old/index.html http://localhost/docs/php/test.php  
    
    AddType application/x-shockwave-flash swf
    AddType application/octet-stream txt 
    
    IndexIgnore *.gif *.jpg *.css *.js 
    
    <ifModule mod_php4.c>
     php_value zlib.output_compression 16386
    </ifModule>
    
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule bg-(.*)-font-(.*)\.html$ test.php?bgcolor=$1&fontColor=$2
    however I still get a 500 server error when I browser to any page.
    "Whenever you remember, I'll be there/
    Remember how we reached that dream together" - Carrie Underwood

  2. #32
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    Re: .html or not?

    And if you delete the

    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule bg-(.*)-font-(.*)\.html$ test.php?bgcolor=$1&fontColor=$2
    It does not show you a 500 server error?

  3. #33
    Code Slinger chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5's Avatar
    Join Date
    Mar 2008
    Posts
    7,023
    Blog Entries
    1

    Re: .html or not?

    Yes I removed that and the server error disappeared.
    "Whenever you remember, I'll be there/
    Remember how we reached that dream together" - Carrie Underwood

  4. #34
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    Re: .html or not?

    Hmm, it's very strange... I copied/pasted that from my website and just changed the wording. The test.php is in a subfolder?

  5. #35
    Code Slinger chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5's Avatar
    Join Date
    Mar 2008
    Posts
    7,023
    Blog Entries
    1

    Re: .html or not?

    Nope its in the root htdocs folder.

    My server is xampp

    I have it root of C:

    it appears like this:

    C:\
    XAMPP\
    htdocs\
    test.php
    .htaccess

    is it possible that my server can't use rewrite?
    "Whenever you remember, I'll be there/
    Remember how we reached that dream together" - Carrie Underwood

  6. #36
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    Re: .html or not?

    Yeah, it is possible that it does not allow that.

    But I tried an online validator, my syntax is ok... but it found an error in yours:

    <ifModule mod_php4.c>
    php_value zlib.output_compression 16386
    </ifModule>
    Maybe it is interfering?

  7. #37
    Code Slinger chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5's Avatar
    Join Date
    Mar 2008
    Posts
    7,023
    Blog Entries
    1

    Re: .html or not?

    Ok i think that my server doesn't allow rewriting that I know of. I removed everything in it and still got the server error so I don't know.

    Thanks
    "Whenever you remember, I'll be there/
    Remember how we reached that dream together" - Carrie Underwood

  8. #38
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    Re: .html or not?

    Well.. I'm sorry I can't help more... but I think there should be a way to enable that.

  9. #39
    Code Slinger chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5 has a reputation beyond repute chili5's Avatar
    Join Date
    Mar 2008
    Posts
    7,023
    Blog Entries
    1

    Re: .html or not?

    Yeah it's ok, i'll figure it out eventually maybe.
    "Whenever you remember, I'll be there/
    Remember how we reached that dream together" - Carrie Underwood

  10. #40
    TcM
    TcM is offline
    Code Warrior TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM is a name known to all TcM's Avatar
    Join Date
    Aug 2006
    Posts
    11,461
    Blog Entries
    6

    Re: .html or not?


+ Reply to Thread
Page 4 of 5
FirstFirst ... 2 3 4 5 LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Bookmarks

Bookmarks

     
        Algorithms and Data Structures

        Java tutorials

        Algorithms Forum

Posting Permissions

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