cwilkinson199878
New Member
- Messages
- 34
- Reaction score
- 0
- Points
- 0
The joomla default homepage is http://[yoursite.x10.bz]/index.php so that means http:[yoursite.x10.bz] doesn't work on its own. You can fix this by copy and pasting the code below onto your ".htaccess" file using the Cpanel File manager.
1. Go to Cpanel and open file manager and choose web root.
2. Click once on the .htaccess file that's in that folder and click EDIT at the top, not code editor.
3. Copy and paste the following code into the file, changing whatever is in curly brackets only to suit your needs. IE your website address. Remove the curly brackets when you've added your details. Also for all the places you have to add in your site address, leave out the http:// bit. It has been already added were needed!
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^{YOUR SITE ADDRESS HERE}/index.php[nc]
RewriteRule ^(.*)$ http://{YOUR SITE ADDRESS HERE}/index.php/$1 [r=301,nc]
//Custom 404 errors
ErrorDocument 404 http://{your site here}/index.php/404error
4. Click Save changes at the top right hand corner and test your site without adding the /index.php bit!!
Example one for my joomla site
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cwilkinson1998.x10.bz/index.php[nc]
RewriteRule ^(.*)$ http://www.cwilkinson1998.x10.bz/index.php/$1 [r=301,nc]
//Custom 404 errors
ErrorDocument 404 http://cwilkinson1998.x10.bz/index.php/404error
Click thanks if this helped
Chris
---------- Post added at 06:48 PM ---------- Previous post was at 06:44 PM ----------
Remember to remove the Curly Brackets!!
1. Go to Cpanel and open file manager and choose web root.
2. Click once on the .htaccess file that's in that folder and click EDIT at the top, not code editor.
3. Copy and paste the following code into the file, changing whatever is in curly brackets only to suit your needs. IE your website address. Remove the curly brackets when you've added your details. Also for all the places you have to add in your site address, leave out the http:// bit. It has been already added were needed!
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^{YOUR SITE ADDRESS HERE}/index.php[nc]
RewriteRule ^(.*)$ http://{YOUR SITE ADDRESS HERE}/index.php/$1 [r=301,nc]
//Custom 404 errors
ErrorDocument 404 http://{your site here}/index.php/404error
4. Click Save changes at the top right hand corner and test your site without adding the /index.php bit!!
Example one for my joomla site
//Rewrite to www
Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^cwilkinson1998.x10.bz/index.php[nc]
RewriteRule ^(.*)$ http://www.cwilkinson1998.x10.bz/index.php/$1 [r=301,nc]
//Custom 404 errors
ErrorDocument 404 http://cwilkinson1998.x10.bz/index.php/404error
Click thanks if this helped
Chris
---------- Post added at 06:48 PM ---------- Previous post was at 06:44 PM ----------
Remember to remove the Curly Brackets!!
Last edited: