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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    mod rewrite to directory fail

    Hey, I've been working on this for several hours, and I know its something you guys can do in about 3 seconds. So hoping you don't mind helping me out here...

    I have the following code, which is not quite working:
    Code:
    RewriteCond %{HTTP_HOST} ^mysite.com
    RewriteRule ^vote/(.*)$  wp-content/blogs.dir/2/vote/$1 [L]
    I'm trying to load the page in mysite.com/wp-content/blogs.dir/2/vote/index.html with the mysite.com/vote url, but I get a 404 - page not found. The only way it sort of works is if I go to mysite.com/vote/index.html. Even then, it doesn't load any of the images (which are stored one level deeper in an 'images' directory: mysite.com/wp-content/blogs.dir/2/vote/images/footer.jpg for example).

    Any thoughts on what I'm doing wrong here?

    It may be important to note that Wordpress is installed on the root directory.

    Thanks!

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,861
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Even then, it doesn't load any of the images (which are stored one level deeper in an 'images' directory: mysite.com/wp-content/blogs.dir/2/vote/images/footer.jpg for example).

    Any thoughts on what I'm doing wrong here?
    If you use absolute paths to refer all images and all other files in your client side code, you may be able solve it. Take a look at http://www.codingforums.com/showthre...167#post784167
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)

  • #3
    New to the CF scene
    Join Date
    Aug 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by abduraooft View Post
    If you use absolute paths to refer all images and all other files in your client side code, you may be able solve it. Take a look at http://www.codingforums.com/showthre...167#post784167
    Good thinking - thanks abduraoof! I got so hung up on getting the rewrite to work, I didn't think of the obvious.

    thanks!


  •  

    Posting Permissions

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