.htaccess trouble

Melissa!

New Member
Messages
2
Reaction score
0
Points
0
Hello people!

I'm Melissa and i'm starting with webdevelopment. Last week i bought a script and uploaded it to my website, but everytime I run it, I got an 404 error (generate_link is the page not found). Looking for the reason of this issue, I found the .htaccess file but couldn't figure out what is going wrong. Here is it:

Code:
Options +FollowSymlinks
RewriteEngine on
RewriteBase /
RewriteRule ^([^.]+)\.html$ $1.php [L] 
RewriteRule ^dl/(.*)$ download.php?id=$1&t=$2 [NC]
RewriteRule ^generate_link /modules/generate_link.php [NC]
RewriteRule ^rs/([^/]+)/([^/]+) /modules/rsdownload.php?rsid=$1&rsfile=$2 [NC]
RewriteRule ^sc/([^/]+) /modules/sharecash.php?id=$1 [NC]
RewriteRule ^mu/([^/]+) /modules/mudownload.php?muid=$1 [NC]
RewriteRule ^hf/([^/]+)/([^/]+)/([^/]+) /modules/hfdownload.php?hfid1=$1&hfid2=$2&hfname=$3 [NC]
RewriteRule ^yt/([^/]+) /modules/ytdownload.php?vidid=$1&idm=1 [NC]
RewriteRule ^nl/([^/]+) /modules/nldownload.php?nlid=$1 [NC]
RewriteRule ^es/([^/]+) /modules/esdownload.php?esid=$1 [NC]
RewriteRule ^ul/([^/]+) /modules/uldownload.php?ulid=$1 [NC]
RewriteRule ^df/([^/]+) /modules/dfdownload.php?dfid=$1 [NC]
RewriteRule ^ms/([^/]+) /modules/msdownload.php?msid=$1 [NC]
RewriteRule ^mv/([^/]+) /modules/mvdownload.php?mvid=$1&idm=1 [NC]
RewriteRule ^mp/([^/]+) /modules/mpdownload.php?mpid=$1&idm=1 [NC]
RewriteRule ^idm/rs/([^/]+)/([^/]+) /modules/rsdownload.php?rsid=$1&rsfile=$2&idm=1 [NC]
RewriteRule ^idm/mu/([^/]+) /modules/mudownload.php?muid=$1&idm=1 [NC]
RewriteRule ^idm/hf/([^/]+)/([^/]+)/([^/]+) /modules/hfdownload.php?hfid1=$1&hfid2=$2&hfname=$3&idm=1 [NC]
RewriteRule ^idm/yt/([^/]+) /modules/ytdownload.php?vidid=$1&idm=1 [NC]
RewriteRule ^idm/sc/([^/]+) /modules/sharecash.php?id=$1 [NC]
RewriteRule ^idm/nl/([^/]+) /modules/nldownload.php?nlid=$1&idm=1 [NC]
RewriteRule ^idm/es/([^/]+) /modules/esdownload.php?esid=$1&idm=1 [NC]
RewriteRule ^idm/ul/([^/]+) /modules/uldownload.php?ulid=$1&idm=1 [NC]
RewriteRule ^idm/df/([^/]+) /modules/dfdownload.php?dfid=$1&idm=1 [NC]
RewriteRule ^idm/ms/([^/]+) /modules/msdownload.php?msid=$1&idm=1 [NC]
RewriteRule ^idm/mv/([^/]+) /modules/mvdownload.php?mvid=$1&idm=1 [NC]
RewriteRule ^idm/mp/([^/]+) /modules/mpdownload.php?mpid=$1&idm=1 [NC]
ExpiresActive On
ExpiresByType image/gif A2592000

Can anyone see what's going wrong with my script? I'm a bit confused :cry:

Thanks a million guys!
 

vv.bbcc19

Community Advocate
Community Support
Messages
1,524
Reaction score
92
Points
48
Can you also mention the name of the script and what it does?
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
Note the line:
Code:
RewriteRule ^generate_link /modules/generate_link.php [NC]

The URL "http://[server name]/generate_link" (server name not specified, since you didn't give it) is serviced by the file ~[username]/public_html/modules/generate_link.php. A Not Found response prompts you to check that you placed the relevant files where they need to be, in the modules directory.
 
Last edited:

horizonsit56

New Member
Messages
1
Reaction score
0
Points
0
This fine for htaccess file

ErrorDocument 401 index.php?401
ErrorDocument 403 index.php?403
ErrorDocument 404 index.php?404
ErrorDocument 500 index.php?500
 
 

 
 

misson

Community Paragon
Community Support
Messages
2,572
Reaction score
72
Points
48
@horizonsit56: what does that have to do with Melissa's problem?
 

Melissa!

New Member
Messages
2
Reaction score
0
Points
0
Note the line:
Code:
RewriteRule ^generate_link /modules/generate_link.php [NC]
The URL "http://[server name]/generate_link" (server name not specified, since you didn't give it) is serviced by the file ~[username]/public_html/modules/generate_link.php. A Not Found response prompts you to check that you placed the relevant files where they need to be, in the modules directory.

The file modules/generate_link.php exists! That's why i'm so confused about it. I'm very disappointed with this. To get worse, I don't even know how to use .htaccess files =/
Thanks for your reply!

vv.bbcc19
Can you also mention the name of the script and what it does?​


It's a file streaming script called Rapidtime.
 
Top