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
Redirect help
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Redirect help
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=
Re: Redirect help
Hi Don,
thanks a million! I'll try it
Cheers,
Dachs
thanks a million! I'll try it
Cheers,
Dachs
Re: Redirect help
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'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.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Re: Redirect help
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
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/
# 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/
Re: Redirect help
Nop...garvinhicking wrote:Put a .htaccess inside the SMF directory which contains "RewriteEngine Off" to see if that helps?
Ooops... Sorry!garvinhicking wrote:It's unrelated to this question, though
Thanks for helping, anyway!
Try not. Do, or do not. There is no try.
-
- Regular
- Posts: 3652
- Joined: Mon Feb 13, 2006 2:40 am
- Location: Chicago, IL, USA
- Contact:
Re: Redirect help
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: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!
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>
=Don=
Re: Redirect help
Woops!
Thanks Don!
Garvin found it and I didn't see your answer, sorry.
Anyway, thanks a lot!
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.