+ Reply to Thread
Results 1 to 6 of 6

Thread: .htaccess trouble

  1. #1
    Melissa! is offline x10Hosting Member Melissa! is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    2

    .htaccess trouble

    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!

  2. #2
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: .htaccess trouble

    Can you also mention the name of the script and what it does?

  3. #3
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: .htaccess trouble

    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 by misson; 06-05-2011 at 05:54 AM.
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  4. #4
    horizonsit56 is offline x10Hosting Member horizonsit56 is an unknown quantity at this point
    Join Date
    Nov 2010
    Posts
    1

    Red face Re: .htaccess trouble

    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
     
     

     

  5. #5
    misson is offline x10 Spammer misson is a jewel in the rough
    Join Date
    Mar 2008
    Location
    Libertatia
    Posts
    2,506

    Re: .htaccess trouble

    @horizonsit56: what does that have to do with Melissa's problem?
    Be sure to read all pages linked in this post; they have further information that should prove useful. When asking for help, make sure you follow Eric Raymond's and Jon Skeet's guidelines for prompt, accurate responses. Please answer any questions I ask; they're not rhetorical (probably). Any posted code is intended as illustrative example, rather than a solution to your problem to be copied without alteration. Study it to learn how to write your own solution.
    Misson, not Mission.

  6. #6
    Melissa! is offline x10Hosting Member Melissa! is an unknown quantity at this point
    Join Date
    Jun 2011
    Posts
    2

    Re: .htaccess trouble

    Quote Originally Posted by misson View Post
    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.

+ Reply to Thread

Similar Threads

  1. Replies: 5
    Last Post: 04-18-2011, 07:52 AM
  2. htaccess
    By zonamusica1 in forum Free Hosting
    Replies: 0
    Last Post: 11-12-2010, 09:15 AM
  3. .htaccess
    By meykuh54 in forum Free Hosting
    Replies: 1
    Last Post: 11-11-2010, 05:40 AM
  4. .htaccess
    By Cliff Dude in forum Programming Help
    Replies: 10
    Last Post: 04-12-2008, 03:51 PM
  5. .htaccess
    By deaddevil in forum Scripts & 3rd Party Apps
    Replies: 3
    Last Post: 12-09-2007, 05:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers