Page 1 of 1

Redirect help

Posted: Tue Nov 10, 2009 9:02 pm
by user1234
Hi,

I need some help redirecting paths, which will not interfere with s9y's own redirection rules.

Currently the setup is as follows

mydomain.com/index.html (has a link to: mydomain.com/serendipity/)

mydomain.com/serendipity/ (contains the blog)

As in this installation I may later need an empty public.html folder for other PHP software, I cannot move the installation to the root. Yet I want to do away with the current index.html. Instead

mydomain.com/ should redirect automatically to mydomain.com/serendipity/ and that without interfering in any way with anything else.

What would I have to put into the .htaccess?

Cheers

Dachs

Re: Redirect help

Posted: Tue Nov 10, 2009 10:59 pm
by Don Chambers
Others might have a better suggestion, but you could try this for starters:

Code: Select all

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mydomain.com$
RewriteRule ^(/)?$ serendipity [L]

Re: Redirect help

Posted: Wed Nov 11, 2009 12:18 am
by user1234
Hi Don,

thanks a million! I'll try it :mrgreen:

Cheers,

Dachs

Re: Redirect help

Posted: Fri Dec 25, 2009 9:45 pm
by 3nd3r
Hello!

I've got a similar question... I have a s9y blog on the root on my site (http://www.pajareo.com) in /public_html, and I've got a forum on /public_html/SMF (http://www.pajareo.com/SMF, but I can't get there...

What do I need to put in my .htaccess to get there without any bad interoperation with s9y?

Thanks in advance!

Re: Redirect help

Posted: Sat Dec 26, 2009 12:39 am
by garvinhicking
Hi!

Put a .htaccess inside the SMF directory which contains "RewriteEngine Off" to see if that helps?

It's unrelated to this question, though :-)

Regards,
Garvin

Re: Redirect help

Posted: Sat Dec 26, 2009 12:47 am
by 3nd3r
garvinhicking wrote:Put a .htaccess inside the SMF directory which contains "RewriteEngine Off" to see if that helps?
Nop...
garvinhicking wrote:It's unrelated to this question, though :-)
Ooops... Sorry!

Thanks for helping, anyway!

Re: Redirect help

Posted: Mon Dec 28, 2009 9:22 pm
by Don Chambers
3nd3r wrote:Hello!

I've got a similar question... I have a s9y blog on the root on my site (http://www.pajareo.com) in /public_html, and I've got a forum on /public_html/SMF (http://www.pajareo.com/SMF, but I can't get there...

What do I need to put in my .htaccess to get there without any bad interoperation with s9y?

Thanks in advance!
I have a phpBB forum on my site installed in a subfolder named "support". Here is what my htaccess file looks like in that folder:

Code: Select all

DirectoryIndex /support/index.php

<Files "config.php">
Order Allow,Deny
Deny from All
</Files>

<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
Maybe something like that will work for you?

Re: Redirect help

Posted: Tue Dec 29, 2009 6:55 pm
by 3nd3r
Woops!

Thanks Don!

Garvin found it and I didn't see your answer, sorry.

Anyway, thanks a lot! :)