Redirect

Redirect

Posted by: rippond
Posted on: 2007-10-22 21:08:00

What would be the best way to make http://danrippon.com/ point to http://danrippon.com/wpress/ ?

Basically so when the url danrippon.com is typed in, it shows what is on danrippon.com/wpress.

TIA



Re: Redirect

Posted by: patricktan
Posted on: 2007-10-22 21:54:00

If you are not familiar with htaccess, remap ought to be enough for you.
http://wiki.dreamhost.com/KB_/_Account_Control_Panel_/_Domains_::_Remap_Sub-Dir

Re: Redirect

Posted by: rippond
Posted on: 2007-10-22 22:38:00

I did that before and i am pretty sure wordpress started erroring. I also tried in .htaccess, but the redirect did not work... it went to danrippon.com/wpress/wpress/wpress/wpress..... on and on....

Is there a better explanation of the panel's remap sub-dir function? I am afraid of breaking it again.

Re: Redirect

Posted by: monkeyboy7706
Posted on: 2007-10-23 07:02:00

you could just add the following to your .htaccess

Redirect / http://danrippon.com/wpress/

this should redirect any traffic to the correct place

Re: Redirect

Posted by: rippond
Posted on: 2007-11-01 00:12:00

Doing that causes it to error by sending it into a continous redirect. It tries to rederict to /wpress/wpress/wpress/wpress/wpress.... and so on until the browser detects and stops it.

Is the only solution to move the whole site to / from of /wpress?

Re: Redirect - WordPress in a subdir

Posted by: rlparker
Posted on: 2007-11-01 00:30:00

In reply to:

Is the only solution to move the whole site to / from of /wpress?


Well, I think that is *certainly* the *best* solution, for several reasons. wink

That said, there is another way to have a WordPress installation in a subdirectory reached via "http://yoursite.tld" (proven to work) discussed in this previous forum post. You might want to read through that whole thread to see some stuff that *won't* work at all, a way to approach the problem using PHP, and a method that doesn't work "well" (such as using a meta-refresh tag).

That post discusses, and points you to, the WP Codex article on "Giving WordPress Its Own Directory", which is the "WordPress" recommended way to leave your blog functioning at it's present location, but have it reached from http://yourdomain.tld/.

Frankly, I would prefer to just move the installation, but you may feel differently, and this shows you how to do what you are asking about! wink

--rlparker

Tags: tia