Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Mod rewrite...

  1. #1
    New Coder
    Join Date
    Jan 2009
    Location
    Florida
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts

    Mod rewrite...

    I've tried using
    PHP Code:
    Options +FollowSymLinks 
    RewriteEngine On 
    RewriteRule 
    ^style - [L,NC
    RewriteRule ^images - [L,NC
    RewriteRule ^javascript - [L,NC
    RewriteRule ^share/(.*)/?$ index.php?p=share&id=$[L
    To rewrite my sharing links on my image host to share/id this works fine but it replaces style and image links with /share

    For example...
    http://localhost/v3/share/style/global.css
    When it should be
    http://localhost/v3/style/global.css

    I've attempted using
    PHP Code:
    RewriteRule ^style - [L,NC
    RewriteRule ^images - [L,NC
    RewriteRule ^javascript - [L,NC
    to remove the folders from the rewrite. I'm wondering if there is a way to set an absolute path.
    Last edited by WillyR; 03-01-2009 at 04:53 AM.

  • #2
    New Coder
    Join Date
    Jan 2009
    Location
    Florida
    Posts
    12
    Thanks
    3
    Thanked 0 Times in 0 Posts
    Fixed by defining the absolute path for EVERYTHING.


  •  

    Posting Permissions

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