Web Hosting Forums

Results 1 to 2 of 2

This is a discussion on Mod rewrite problem. in the Hosting Talk & Chit-chat forum
Heya, Could someone help me get my mod rewire right. It looks as follows: RewriteRule ^abc/(.*)$ abc.php?site_id=$1 [QSA,L] RewriteRule ^d/([^\?]*)?(.*)$ d.php?site_id=$1 [QSA,L] it works when ...

  1. #1
    Smo
    Smo is offline
    Loyal Client
    Join Date
    Nov 2002
    Location
    Finland
    Posts
    215

    Mod rewrite problem.

    Heya,
    Could someone help me get my mod rewire right.

    It looks as follows:

    RewriteRule ^abc/(.*)$ abc.php?site_id=$1 [QSA,L]
    RewriteRule ^d/([^\?]*)?(.*)$ d.php?site_id=$1 [QSA,L]

    it works when I load ipaddress/dir/abc/56
    but not when I load ipaddress:port/abc/56

    I don't have a domainname for the server I'm playing with but the latter ip:port is a vhost for a subdomain-to-be.
    Last edited by Ron; 05-29-2007 at 06:30 AM. Reason: Disabled smilies

  2. #2
    Ron
    Ron is offline
    Loyal Client
    Join Date
    Aug 2002
    Posts
    7,503
    Stupid question, but have you tried printing out the REQUEST_URIs ? What do you see?
    Good luck

Bookmarks

Posting Permissions

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