Follow Me on Twitter
Client Support Community Server Status Contact Us Client Login
Email Hosting Website Hosting Reseller Hosting VPS Hosting Dedicated Servers

    Join our Community      Check your private messages       Profile       Search       FAQ       Memberlist       Log in


307 redirect of base url only

 
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
BrightEyesDavid Reply with quote
 NetHosted Customer

 

 Joined: 24 Nov 2005
 Posts: 180
 Location: Cologne, Germany

PostPosted: Sun Oct 04, 2009 10:53 pm    Post subject: 307 redirect of base url only
 
Hi all,

I was wondering if anyone knows how to redirect to a file only for the base url - not when anything comes after the base url.

http://website.com/
307 redirect to file.htm

http://website.com/anythingelse/
no redirect

Thanks.

_________________
David Oliver - Web and print design 
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 7017
 

PostPosted: Sun Oct 04, 2009 10:56 pm    Post subject:
 
Hi,

You could just use a DirectoryIndex directive in a .htaccess file. It won't be a 307 redirect but it'll work.

Thanks,

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Follow us on Twitter: http://twitter.com/nethosted 
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
BrightEyesDavid Reply with quote
 NetHosted Customer

 

 Joined: 24 Nov 2005
 Posts: 180
 Location: Cologne, Germany

PostPosted: Sun Oct 04, 2009 11:05 pm    Post subject:
 


That'll do nicely - thanks a lot.

_________________
David Oliver - Web and print design 
Back to top
View user's profile Send private message Visit poster's website
NetHosted - Andrew Reply with quote
 NetHosted Staff

 

 Joined: 22 Mar 2004
 Posts: 7017
 

PostPosted: Sun Oct 04, 2009 11:07 pm    Post subject:
 
BrightEyesDavid wrote:
That'll do nicely - thanks a lot.


No problem

Andrew

_________________
| Andrew Bassett
| Managing Director, NetHosted Ltd.
| Follow us on Twitter: http://twitter.com/nethosted 
| Members, tell us what you think  of NetHosted!
Back to top
View user's profile Send private message
Post new topic   Reply to topic    NetHosted Community Index -> Web Design
Page 1 of 1

User Permissions
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum

 
Jump to: