Jump to content

how to direct my subdir to my domain


Recommended Posts

hi,

 

I am using the godaddy hosting, and i installed the software to the subdirectory instead of root. Now i have the problem that my website is

http://www.coffeecatcher.net/coffeecatcher/ instead of www.coffeecatcher.net

 

i have googling and found that change of the htaccess to make it direct back to the hosting, but it is not work

 

 

here is the htaccess i have copy from the other

 

# Copy and paste the following code into the .htaccess file

# in the public_html folder of your hosting account

# make the changes to the file according to the instructions.

 

# Do not change this line - RewriteEngine on

RewriteEngine on

 

# Change yourdomain.com to be your main domain.

RewriteCond %{HTTP_HOST} ^(www.)?coffeecatcher.net$

 

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteCond %{REQUEST_URI} !^/coffeecatcher/

 

# Don't change this line.

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

 

# Change 'subfolder' to be the folder you will use for your main domain.

RewriteRule ^(.*)$ /coffeecatcher/$1

 

# Change yourdomain.com to be your main domain again.

# Change 'subfolder' to be the folder you will use for your main domain

# followed by / then the main file for your site, index.php, index.html, etc.

RewriteCond %{HTTP_HOST} ^(www.)?coffeecatcher.net$

RewriteRule ^(/)?$ coffeecatcher/index.php [L]

 

 

Can someone help me with solution

 

thank you

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...