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:
however I still get a 500 server error when I browser to any page.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
And if you delete the
It does not show you a 500 server error?Options +FollowSymlinks
RewriteEngine on
RewriteRule bg-(.*)-font-(.*)\.html$ test.php?bgcolor=$1&fontColor=$2
Yes I removed that and the server error disappeared.
Hmm, it's very strange... I copied/pasted that from my website and just changed the wording. The test.php is in a subfolder?
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?
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:
Maybe it is interfering?<ifModule mod_php4.c>
php_value zlib.output_compression 16386
</ifModule>
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![]()
Well.. I'm sorry I can't help more... but I think there should be a way to enable that.
Yeah it's ok, i'll figure it out eventually maybe.![]()
Hope for the best...
Try this:
enabling mod rewrite in xampp « me looking so small in this world
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks