Jump to content


Mod_rewrite question


2 replies to this topic

#1 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 31 August 2006 - 07:03 PM

Hi

I have been using mod_rewrite on my site and it has all worked fine.
Ive just moved hosts and uploaded my files and the htaccess file, but i get internal server error on this host with the htaccess.
the host support htaccess but none of my files work :)

I was wondering if its to do with my coding of the htaccess file?

here is one of my codes
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteRule ^out/([a-z0-9-]+)/?$ /links/out.php?id=$1
</IfModule>


php_value upload_max_filesize "20M"

I just wanted to see if it was my coding before i ask for help from my host

thanks

EDIT : i got a erro.log in ftp aswell.

[01-Sep-2006 01:59:31] PHP Warning:  include() [<a href='function.include'>function.include</a>]: Failed opening 'http://www.fractical-fx.co.uk/links' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/grez/public_html/affiliates.php on line 23
[code]

Edited by GR3Z, 31 August 2006 - 07:05 PM.


#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 31 August 2006 - 08:09 PM

php_value upload_max_filesize "20M"
That's the line that's causing the problem. Theres nothing wrong with the line, it's just that some host don't allow you to alter the php.ini file via .htaccess (which is sometimes the only way to do it), and it's throwing a 500 error (and i'm about to leave my host because they recently did the same thing to me).

#3 FFX

    Young Padawan

  • Members
  • Pip
  • 105 posts

Posted 01 September 2006 - 06:40 AM

thanks works now.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users