Author |
Message |
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Tue Jul 01, 2003 9:04 pm (20 years, 9 months ago) |
|
this has me really confused...I have this in .htaccess:
Code: | RewriteEngine on
RewriteRule /download/([0-9]+) /scripts/download.php?prod=$1 |
but for some reason visiting /download/1 causes an error 404. I can't see anything wrong with my code, any ideas? |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jul 02, 2003 8:51 am (20 years, 9 months ago) |
|
Is download a directory? Where is the .htaccess file? |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Jul 02, 2003 11:12 am (20 years, 9 months ago) |
|
yes, download is a directory...here's the directory structure:
Code: |
/
|
|---> public_html
|
|---> .htaccess
|---> scripts
| |---> download.php
|---> download |
|
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jul 02, 2003 11:21 am (20 years, 9 months ago) |
|
Yes, but where is the .htaccess file? In the download directory? |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Jul 02, 2003 12:03 pm (20 years, 9 months ago) |
|
no...as shown in my lovely diagram, the .htaccess file is in /public_html/ (at my site's root) |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jul 02, 2003 12:07 pm (20 years, 9 months ago) |
|
Does it work any better in the download directory? If not, try getting rid of the directory... |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Jul 02, 2003 12:50 pm (20 years, 9 months ago) |
|
tried both...no difference |
________________________________ It's turtles all the way down... |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Jul 02, 2003 4:47 pm (20 years, 9 months ago) |
|
Are you sure the .htaccess file isn't being ignored or something? Try putting some code in which should produce a 500 error, and see if it does. Also make sure mod_rewrite is installed on your server. |
________________________________
|
|
|
|
adam
Forum Moderator & Developer
Joined: 26 Jul 2002
Posts: 704
Location: UK
|
Posted:
Wed Jul 02, 2003 5:04 pm (20 years, 9 months ago) |
|
mod_rewrite is installed, and the .htaccess also sets the php include_path...so it's not that |
________________________________ It's turtles all the way down... |
|
|
|
pcbunk
Junior WebHelper
Joined: 18 Jul 2003
Posts: 7
|
Posted:
Fri Jul 18, 2003 8:38 am (20 years, 9 months ago) |
|
how can you test if mod_rewrite is installed? |
________________________________ Blayne
PCBunk.net |
|
|
|
Daniel
Team Member
Joined: 06 Jan 2002
Posts: 2564
|
Posted:
Wed Aug 20, 2003 1:07 pm (20 years, 8 months ago) |
|
|
|
|
|
Page generation time: 0.346146 seconds :: 18 queries executed :: All Times are GMT
Powered by
phpBB 2.0
© 2001, 2002 phpBB Group :: Based on an FI Theme