4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 mod_rewrite woes :(
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Tue Jul 01, 2003 9:04 pm (20 years, 9 months ago) Reply with QuoteBack to Top

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...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jul 02, 2003 8:51 am (20 years, 9 months ago) Reply with QuoteBack to Top

Is download a directory? Where is the .htaccess file?

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Jul 02, 2003 11:12 am (20 years, 9 months ago) Reply with QuoteBack to Top

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...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jul 02, 2003 11:21 am (20 years, 9 months ago) Reply with QuoteBack to Top

Yes, but where is the .htaccess file? In the download directory?

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Jul 02, 2003 12:03 pm (20 years, 9 months ago) Reply with QuoteBack to Top

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...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jul 02, 2003 12:07 pm (20 years, 9 months ago) Reply with QuoteBack to Top

Does it work any better in the download directory? If not, try getting rid of the directory...

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Jul 02, 2003 12:50 pm (20 years, 9 months ago) Reply with QuoteBack to Top

tried both...no difference Sad

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Jul 02, 2003 4:47 pm (20 years, 9 months ago) Reply with QuoteBack to Top

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.

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Wed Jul 02, 2003 5:04 pm (20 years, 9 months ago) Reply with QuoteBack to Top

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...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
pcbunk
Junior WebHelper
Junior WebHelper


Joined: 18 Jul 2003
Posts: 7

PostPosted: Fri Jul 18, 2003 8:38 am (20 years, 9 months ago) Reply with QuoteBack to Top

how can you test if mod_rewrite is installed?

________________________________
Blayne
PCBunk.net
OfflineView User's ProfileFind all posts by pcbunkSend Personal Message
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Wed Aug 20, 2003 1:07 pm (20 years, 8 months ago) Reply with QuoteBack to Top

phpinfo should show it Smile

Arrow to the Left http://www.4webhelp.net/scripts/php/phpinfo.php

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   




You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.337314 seconds :: 18 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme