Thread: .htaccess Xampp

    #1
  1. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    204
    Rep Power
    3

    .htaccess Xampp


    I'm using .htaccess to have clean url's. This is working on my server. But in xampp it's always trying to find my includes in the root "/" directory.. while my files are in htdocs/meetup/

    Here's my .htaccess any idea what i can do.
    PHP Code:
    <IfModule mod_rewrite.cOptions +FollowSymlinks  RewriteEngine on  RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^meeting/(.*)(/?)$ meeting.php?m=$[L]  </IfModule
    Example. my css is in htdocs/meetup/style.css ... but it's looking for htdocs/style.css
  2. #2
  3. Sarcky
    Devshed Supreme Being (6500+ posts)

    Join Date
    Oct 2006
    Location
    Pennsylvania, USA
    Posts
    10,908
    Rep Power
    6351
    Moved to Apache.
    HEY! YOU! Read the New User Guide and Forum Rules

    "They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." -Benjamin Franklin

    "The greatest tragedy of this changing society is that people who never knew what it was like before will simply assume that this is the way things are supposed to be." -2600 Magazine, Fall 2002

    Think we're being rude? Maybe you asked a bad question or you're a Help Vampire. Trying to argue intelligently? Please read this.
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    876
    Rep Power
    275
    1) This is NOT PHP related and should have been posted in the Apache Development section [reported and requested to be moved to there.]
    2) Try this:
    Code:
    <IfModule mod_rewrite.c>
         Options +FollowSymlinks  
         RewriteEngine on  
         RewriteBase /meetup
         RewriteCond %{REQUEST_FILENAME} !-d 
         RewriteCond %{REQUEST_FILENAME} !-f 
         RewriteRule ^meeting/(.*)(/?)$ meeting.php?m=$1 [L]  
    </IfModule>
  6. #4
  7. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    204
    Rep Power
    3
    Originally Posted by DonR
    1) This is NOT PHP related and should have been posted in the Apache Development section [reported and requested to be moved to there.]
    2) Try this:
    Code:
    <IfModule mod_rewrite.c>
         Options +FollowSymlinks  
         RewriteEngine on  
         RewriteBase /meetup
         RewriteCond %{REQUEST_FILENAME} !-d 
         RewriteCond %{REQUEST_FILENAME} !-f 
         RewriteRule ^meeting/(.*)(/?)$ meeting.php?m=$1 [L]  
    </IfModule>
    Hi. Thanks for your response. But it's still not working .. Still looking in the xampp folder
  8. #5
  9. Transforming Moderator
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2007
    Location
    Washington, USA
    Posts
    14,119
    Rep Power
    9398
    Originally Posted by notflip
    Example. my css is in htdocs/meetup/style.css ... but it's looking for htdocs/style.css
    So why aren't you linking to /meetup/style.css?
  10. #6
  11. Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2012
    Posts
    204
    Rep Power
    3
    Originally Posted by requinix
    So why aren't you linking to /meetup/style.css?
    Because this is my local server. And when i upload everything it won't be in a folder /meetup/ it'll just be in the home folder..

    Or is there a better way to have a testing/development environment?

IMN logo majestic logo threadwatch logo seochat tools logo