Shared host?
Add to your .htaccess file:
DirectoryIndex index.php
(2017-08-23, 04:07 AM)Ben Cousins Wrote: [ -> ]Shared host?
Add to your .htaccess file:
DirectoryIndex index.php
yeah, I'm using Name.com web hosting.
Added the code to my .htaccess file and it didn't work.
^ login to
forum admin panel &
remove www from the
board url.
forum admin panel >>
Configuration (
Settings) >>
Site Details >>
Board URL
then you should be able to get
forum index without www in the URL &
without index.php at the end
you can also add below rules in the
.htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.illuminatiforum.com [NC]
RewriteRule ^(.*)$ http://illuminatiforum.com/$1 [L,R=301]
(2017-08-23, 04:39 AM).m. Wrote: [ -> ]^ login to forum admin panel & remove www from the board url.
forum admin panel >> Configuration (Settings) >> Site Details >> Board URL
then you should be able to get forum index without www in the URL & without index.php at the end
you can also add below rules in the .htaccess
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} ^www.illuminatiforum.com [NC]
RewriteRule ^(.*)$ http://illuminatiforum.com/$1 [L,R=301]
I logged into the forum admin panel and removed www from the board url.
However when I still can only access my site with the following illuminatiforum.com/index.php
Question,
The below code is already in the .htaccess file
Options -MultiViews +FollowSymlinks -Indexes
#
# If mod_security is enabled, attempt to disable it.
# - Note, this will work on the majority of hosts but on
# MediaTemple, it is known to cause random Internal Server
# errors. For MediaTemple, please remove the block below
#
<IfModule mod_security.c>
# Turn off mod_security filtering.
SecFilterEngine Off
# The below probably isn't needed, but better safe than sorry.
SecFilterScanPOST Off
</IfModule>
#
# MyBB "search engine friendly" URL rewrites
# - Note, for these to work with MyBB please make sure you have
# the setting enabled in the Admin CP and you have this file
# named .htaccess
#
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
of course thats not all the code, but it is the very first part of it and the significant part I believe.
Where would I place your code inside my .htaccess file?
Thank you for your help by the way.
after
RewriteEngine on you can add below
RewriteCond %{HTTP_HOST} ^www.illuminatiforum.com [NC]
RewriteRule ^(.*)$ http://illuminatiforum.com/$1 [L,R=301]
perhaps there is a mis-configuration at domain level.
if your forum doesn't load after above changes then please revert the changes