Register

If this is your first visit, please click the Sign Up now button to begin the process of creating your account so you can begin posting on our forums! The Sign Up process will only take up about a minute of two of your time.

Results 1 to 3 of 3
  1. #1
    Senior Member tekp's Avatar
    Join Date
    Jan 2004
    Location
    A small village near a small city near a small cit
    Posts
    918
    Member #
    4667
    Liked
    1 times
    When I place a .htaccess file in the directory /OTHER/projects/tekp/ with this and only this inside:

    Code:
    RewriteEngine On
    RewriteRule ^/OTHER/projects/tekp/photos/view/([a-zA-Z0-9_]+)/
                 /OTHER/projects/tekp/photos/view/?album=$1
    I get:

    Internal Server Error
    The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.
    More information about this error may be available in the server error log.
    ---
    Apache/1.3.23 Server at localhost Port 80
    Even if the directories are relative to /OTHER/projects/tekp/ (i.e. photos/view etc) I still get it.

    Do I need to turn on the mod_rewrite module? If so how? Thanks
    tekp :cheeky: tekponline.com

  2.  

  3. #2
    Senior Member filburt1's Avatar
    Join Date
    Jul 2002
    Location
    Maryland, US
    Posts
    11,774
    Member #
    3
    Liked
    21 times
    What's that crazy character at the end of RewriteRule...just a line continuation?

    Can you view the server's error log to see what details it provided? On my server, it's /var/log/apache2/error_log but on Windows it will be different.
    filburt1, Web Design Forums.net founder
    Site of the Month contest: submit your site or vote for the winner!

  4. #3
    Senior Member tekp's Avatar
    Join Date
    Jan 2004
    Location
    A small village near a small city near a small cit
    Posts
    918
    Member #
    4667
    Liked
    1 times
    Okay I removed the character at the end... and the error log says:

    [Wed Dec 20 15:15:08 2006] [alert] [client 127.0.0.1] c:/apache/htdocs/other/projects/tekp/.htaccess: RewriteRule: bad argument line '^/OTHER/projects/tekp/photos/view/([a-zA-Z0-9_]+)/'
    :S
    tekp :cheeky: tekponline.com


Remove Ads

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
All times are GMT -6. The time now is 04:32 AM.
Powered by vBulletin® Version 4.2.3
Copyright © 2019 vBulletin Solutions, Inc. All rights reserved.
vBulletin Skin By: PurevB.com