Go Back   Website Hosting - VPS Hosting - Domain Registration Ireland :: Blacknight > Technical Support > Direct Admin - Shared Linux

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 14-07-08, 01:39 PM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default .htaccess Redirect

Hi all,

I have just installed Joomla 1.5 via the installer. To access my pages I have to go to the fully qualified domain i.e http://www.mydomain.com/joomla

I have been told that if I add a redirect line in the .htaccess file, it will automatically send the user to the correct url when they visit my domain.

The line I have been told to add is "Redirect / http://www.mydomain.com/joomla/"

However this does not seem to work, can anyone tell me where this line should appear and should any of the other code in the file be removed or changed in any way?

Many thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 14-07-08, 02:10 PM
Blacknight Staff
 
Join Date: Nov 2006
Posts: 30
Default

You might need to put /index.html as the base of the redirect to avoid any infinite redirection.

i.e. "Redirect /index.html http://www.mydomain.com/joomla/"
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 15-07-08, 03:50 PM
Junior Member
 
Join Date: Jul 2008
Posts: 2
Default

Tried that and now I get a 404 error page cannot be found..... help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 16-07-08, 08:21 AM
Blacknight Staff
 
Join Date: Nov 2006
Posts: 30
Default

we might have to have a look at the .htaccess itself to see where the problem might be. Can you email support@blacknight.ie with your domain name and we can have a look? You can also reference this forum thread to show what the problem is.

Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 13-08-08, 03:17 AM
Junior Member
 
Join Date: Aug 2008
Posts: 2
Default

Perhaps try:
Code:
Redirect /index.php http://www.mydomain.com/joomla/
Given with the default setup there's no index.html? Or doesnt that matter?

If I may butt into this thread too as Im trying to achieve something similar.

I have an existing static html site and am considering moving to a CMS, drupal in this case. What I'd like to do is install drupal to a subdirectory so I can mess about with it while the old site is still live etc and once Im ready just switch over to the CMS.

However I'd prefer if the drupal subdirectory is invisible to any visitors.

e.g. at the moment I have:
www.mydomain.com/drupal/

using the suggested .htaccess in the top directory of mysite.com:
Code:
Redirect /index.php http://www.mydomain.com/drupal/
Whenever anyone visits www.mydomain.com they're automatically redirected to www.mydomain.com/drupal/

However, Id like this redirection to be invisible i.e. all a visitor sees in their address bar is: www.mydomain.com despite viewing the contents of www.mydomain.com/drupal/

Is this posible or should I just install drupal to the top directory of the site?

Thanks.

Last edited by Troodon; 13-08-08 at 03:18 AM. Reason: removing auto board tags.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 13-08-08, 10:26 PM
Junior Member
 
Join Date: Aug 2008
Posts: 2
Default

In response to my query the instructions here appear to work.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
htaccess, redirect

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:13 PM.


VPS Hosting Web Hosting Ireland Blacknight Blog Blacknight Status

Powered by: vBulletin Version 3.7.3, Copyright ©2000 - 2008, Jelsoft Enterprises Limited.
Blacknight 2005 - 2008 | VPS Hosting

SEO by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17