Closed Thread
Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 46

Thread: .html or not?

  1. #31
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    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.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #32
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    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?

  4. #33
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: .html or not?

    Yes I removed that and the server error disappeared.

  5. #34
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    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?

  6. #35
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    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?

  7. #36
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    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?

  8. #37
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    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

  9. #38
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

    Re: .html or not?

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

  10. #39
    Join Date
    Mar 2008
    Posts
    7,145
    Rep Power
    86

    Re: .html or not?

    Yeah it's ok, i'll figure it out eventually maybe.

  11. #40
    Join Date
    Aug 2006
    Posts
    11,209
    Blog Entries
    6
    Rep Power
    101

Closed Thread
Page 4 of 5 FirstFirst ... 2345 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. html
    By edwin namisi in forum HTML Programming
    Replies: 11
    Last Post: 06-14-2010, 02:40 PM
  2. Replies: 5
    Last Post: 02-02-2009, 10:58 AM
  3. Which one - PHP or Html?
    By Kolyn_Kryw in forum PHP Development
    Replies: 18
    Last Post: 06-14-2008, 01:47 PM
  4. C++ to HTML?
    By The Midnighter in forum C and C++
    Replies: 14
    Last Post: 11-13-2007, 09:26 AM
  5. HTML Help
    By Selena777 in forum General Programming
    Replies: 3
    Last Post: 05-22-2007, 03:52 AM

Tags for this Thread

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