2009-05-20, 10:20 AM
Pages: 1 2
2009-05-20, 10:23 AM
Add a redirect through your control panel or move the contents of the ./forum folder to the root directory.
2009-05-20, 10:29 AM
(2009-05-20, 10:23 AM)Joshua Mayer Wrote: [ -> ]Add a redirect through your control panel or move the contents of the ./forum folder to the root directory.
Umm Im not sure what you mean by that (complete noob). I want my site to be automatically redirected from "mydomain.com" to "www.mydomain.com/forum".
2009-05-20, 10:32 AM
Open .htaccess in your root directory and add this code:
Replace mydomain.com with your domain.
If there isn't a .htaccess, open a text editor, add that code and save it as .htaccess and upload it to your websites root directory.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]
Replace mydomain.com with your domain.
If there isn't a .htaccess, open a text editor, add that code and save it as .htaccess and upload it to your websites root directory.
2009-05-20, 10:45 AM
(2009-05-20, 10:32 AM)Joshua Mayer Wrote: [ -> ]Open .htaccess in your root directory and add this code:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]
Replace mydomain.com with your domain.
If there isn't a .htaccess, open a text editor, add that code and save it as .htaccess and upload it to your websites root directory.
When I open .htmaccess it has this already in the document
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 211.
Am I suppose to replace that with what you said?
2009-05-20, 10:46 AM
No, add the code that I gave you under that code that is in .htaccess now.
Your .htaccess should look like this when you add the code I gave you:
Your .htaccess should look like this when you add the code I gave you:
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 211.
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]
2009-05-20, 10:51 AM
(2009-05-20, 10:46 AM)Joshua Mayer Wrote: [ -> ]No, add the code that I gave you under that code that is in .htaccess now.
Your .htaccess should look like this when you add the code I gave you:
<Files 403.shtml> order allow,deny allow from all </Files> deny from 211. RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]
I did that.
And when I got to "mydomain.com" I still get this:
2009-05-20, 10:54 AM
Try this:
Once again, change mydomain.com to your actual domain
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC]
RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 211.
Once again, change mydomain.com to your actual domain
2009-05-20, 11:01 AM
(2009-05-20, 10:54 AM)Joshua Mayer Wrote: [ -> ]Try this:
RewriteEngine On RewriteBase / RewriteCond %{HTTP_HOST} !^www.domain.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/forum/$1 [L,R=301] <Files 403.shtml> order allow,deny allow from all </Files> deny from 211.
Once again, change mydomain.com to your actual domain
Still stuck at the .index page
2009-05-20, 11:39 AM
What control panel do you use?? If it's cPanel, there's a section to setup redirects.
Pages: 1 2