jrd Posted February 10, 2004 Posted February 10, 2004 Hi. I'm trying to use mod_rewrite to refer any URLs with my domain to a Weblog hosted by Typepad. In other words, when people come to www.myTCHdomain.com/blog/content.htm I want the page that loads to be http://myblogname.typepad.com/blog/content.htm but the URL in the browser to remain www.myTCHdomain.com/blog/content.htm I'm using this code in my .htaccess file: >RewriteEngine on RewriteRule ^blog/(.*)$ http://myblogname.typepad.com/blog/$1 [P] RewriteRule ^blog$ http://myblogname.typepad.com/blog/ [P] RewriteRule ^/$ http://myblogname.typepad.com/ [P] RewriteRule ^$ http://myblogname.typepad.com/ [P] which I'm told has worked for other people using Typepad, but after I upload that, I keep getting this error when going to my domain on TCH: "Not Found. The requested URL / was not found on this server." I can't figure out what I'm doing wrong and was wondering if you might have any ideas. I don't really know how to use mod_rewrite -- I'm just borrowing others' code -- so I'm not sure if there's something I need to change to make it work with TCH. Thanks. Quote
krieser Posted February 10, 2004 Posted February 10, 2004 This may or may not be related (as i'm not too sharp with mod_rewrite), but is mod_proxy installed on our servers (mine is 50)? I was trying to get this to work too, and it seems the "[P]" sends the request through mod_proxy. I could be way off here... Quote
MikeJ Posted February 10, 2004 Posted February 10, 2004 No. Krieser is exactly right. Proxying is not enabled. [P] is telling the redirects to use mod_proxy. The rewrite rules you have are correct if proxy was installed. Since allowing proxy through a hosting provider's servers can open up some opportunities of abuse, I'm not sure that's something TCH would allow, but if you want mod_proxy installed, you'll likely have to open up a support ticket and see if they'll approve it. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.