...

View Full Version : mod rewrite to directory fail



dombrorj
08-19-2010, 02:43 AM
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:


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!

abduraooft
08-19-2010, 08:16 AM
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/showthread.php?p=784167#post784167

dombrorj
08-20-2010, 12:52 AM
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/showthread.php?p=784167#post784167

Good thinking - thanks abduraoof! I got so hung up on getting the rewrite to work, I didn't think of the obvious.

thanks!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum