Results 1 to 3 of 3

Thread: Interesting Server Configuration

  1. #1
    Join Date
    Nov 2007

    Interesting Server Configuration

    I am in a shared hosting environment on a 1and1 server. I am trying to rewrite www.mydomain.com/products/de.htm -> index.php?action=viewproduct&id=de

    The problem is not with the script. When I upload the bellow .htaccess file and trigger the URL rewrite it fails and i get a 404. If i remove the s from "products" it works, or if I edit the word products in any way it works. As soon as the rewrite rul reads ^products/([0-9a-z]+)\.htm$ it fails.

    If I create the products folder and upload the bellow .htaccess file it works just fine. When i remove the folder same issue it spits out an error.

    Bellow is my .htaccess
    Options +FollowSymlinks
    RewriteEngine on
    RewriteRule ^products/([0-9a-z]+)\.htm$ /index.php?action=viewproduct&id=$1
    RewriteRule ^categories/([0-9a-z]+)\.htm$ /index.php?action=view&cate=$1
    To the best of my knowledge any other word in the english language triggers the URL rewrite with the exception of the word "products"

    For now I have just left the "products" folder in my web space but I would like to know what causes the problem.

    Thank you

  2. #2
    Join Date
    Aug 2005
    The Garden State
    what happens if you escape the s by using \s ?
    Acceptable Use | SQL Forum FAQ | celery is tasteless | twitter

    celery is tasteless - currently needing some UI time

  3. #3
    Join Date
    Nov 2007
    Quote Originally Posted by chazzy View Post
    what happens if you escape the s by using \s ?
    I did try this also, escaping the s does not help. The same results persist.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
HTML5 Development Center