Redirect help

Having trouble installing serendipity?
Post Reply
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Redirect help

Post 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
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Redirect help

Post 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]
=Don=
user1234
Regular
Posts: 75
Joined: Tue Sep 22, 2009 9:49 pm

Re: Redirect help

Post by user1234 »

Hi Don,

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

Cheers,

Dachs
3nd3r
Regular
Posts: 71
Joined: Tue Aug 19, 2008 12:58 pm
Location: NeoMadrid, Spain
Contact:

Re: Redirect help

Post 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!
Try not. Do, or do not. There is no try.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Redirect help

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
3nd3r
Regular
Posts: 71
Joined: Tue Aug 19, 2008 12:58 pm
Location: NeoMadrid, Spain
Contact:

Re: Redirect help

Post 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!
Try not. Do, or do not. There is no try.
Don Chambers
Regular
Posts: 3652
Joined: Mon Feb 13, 2006 2:40 am
Location: Chicago, IL, USA
Contact:

Re: Redirect help

Post 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?
=Don=
3nd3r
Regular
Posts: 71
Joined: Tue Aug 19, 2008 12:58 pm
Location: NeoMadrid, Spain
Contact:

Re: Redirect help

Post by 3nd3r »

Woops!

Thanks Don!

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

Anyway, thanks a lot! :)
Try not. Do, or do not. There is no try.
Post Reply