PDA

View Full Version : redirect



twittren
07-17-2008, 05:01 PM
I have a joomla site at:

mydomain/resurrection/

I am trying to redirect to a google site I made.

I don't have control of my church's domain and the person who does is not responding.

I set the redirect up a couple days ago. It's not working.

My question is, do I need to empty the directory before the redirect will work?

I was hoping to avoid having no website come up during the transition.

Early Out
07-17-2008, 05:05 PM
How did you set up the redirect?

twittren
07-17-2008, 11:06 PM
I went in to "redirects"

I set up a redirect for http://twittren.net/resurrection/ to go to:

http://sites.google.com/a/witticisms.org/resurrection-lutheran-church/

I just redid it and checked "wildcard redirect" to see if that works.

Early Out
07-17-2008, 11:27 PM
That should have done the trick, but I can see that it hasn't. Take a look at the .htaccess file in public_html. There should be a standard 301 redirect in there, like:


Redirect 301 /resurrection/index.php http://sites.google.com/a/witticisms.org/resurrection-lutheran-church/index.html(with the target being whatever the actual page name is.)

It might show up like this, instead, which should also work fine:


RewriteEngine On
RewriteRule ^resurrection/index.php$ http://sites.google.com/a/witticisms.org/resurrection-lutheran-church/index.html$1 [R=301]

twittren
07-18-2008, 09:19 AM
I added the code and it worked!


Thank you very much.