Forum Moderators: phranque

Message Too Old, No Replies

Putting in extra code into Htacces?

         

mrjones

2:41 am on Feb 28, 2008 (gmt 0)

10+ Year Member



Hi Guys I have this in my htacces file
========================================================

RewriteEngine On
RewriteBase /
RewriteRule a([0-9]+)\.html$ article.php?id=$1
RewriteRule c([0-9]+)-([0-9]+)\.html cat.php?id=$1&page=$2
RewriteRule b([0-9]+)-([0-9]+)\.html cat2.php?id=$1&page=$2
RewriteRule l([0-9]+)-([0-9]+)\.html links.php?id=$1&page=$2
RewriteRule sitemap.xml sitemap.php?t=0
RewriteRule urllist.txt sitemap.php?t=1
RewriteRule sitemap([0-9]+).xml sitemap.php?t=0&p=$1
RewriteRule urllist([0-9]+).txt sitemap.php?t=1&p=$1
RewriteRule sitemapindex.xml sitemap.php?t=2
RewriteRule p([0-9]+)\.html$ page.php?id=$1
RewriteRule s([0-9]+)-([^-]+)\.html$ special.php?id=$1&page=$2
RewriteRule feed_([0-9]+).xml$ plugins/rss/rss.php?id=$1

<Files 403.shtml>
order allow,deny
allow from all
</Files>

deny from 222.101.23.102
deny from 66.228.118.53
deny from 66.249.17.251
=================================================

My question is how can i put in code below without error 500 internalserver coming up is there a way,i cannot figure it out trying
Thank you
-------------------------------
AddType application/x-httpd-php .php .html .htm
php_value auto_prepend_file "adsenselock.php"
-------------------------------

le_gber

4:24 pm on Feb 29, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi mrjones and welcome to webmasterworld [webmasterworld.com].

I did a quick google check and I think that you may not need the double quotes around your file name.

ie try: php_value auto_prepend_file path/to/adsenselock.php

mrjones

9:58 am on Mar 1, 2008 (gmt 0)

10+ Year Member



Thank you
I appreciate you taking time out for me.