Homepage > Forum redirect

Started by SychO, September 02, 2015, 08:55:09 AM

Previous topic - Next topic

SychO

Hello dudes,

so this is not really an smf thing but i know i'll find the answer here,

so i setup my homepage which is above the /forum directory of course

but when i get in to the website which is supposed to read index.php

it reads /forum/index.php as primary

so how do i make the one of the homepage primary ?

thank you and reply quick please :)
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

please include SPECIFIC URLs....

I suspect that you have some sort of redirect, but we need to see it in action to determine the actuality
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

Umm,

in public_html was only directories : forum, shop ...etc

so i added the homepage which of course you don't have to set a folder named homepage for it you just drop the files in public_html

and i thought that when it would see the first index.php it would go to it but it's like avoiding it and going to /forum

thats the matter,

now here is the site : http://dzair-gaming.info/

when you click it takes you to http://dzair-gaming.info/forum/

instead of simply http://dzair-gaming.info/index.php

Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

yup... looks like you have a redirect set in your root folder which points to your forum folder.

I'd bet that you have a file named .htaccess in there...
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

yes i do and its content is :


RewriteEngine on

RewriteOptions inherit

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/dzair\-gaming\.info\/forum" [R=301,L]



what di i do now ?
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Illori

if you dont want people automatically redirected to the forum remove

RewriteRule ^/?$ "http\:\/\/dzair\-gaming\.info\/forum" [R=301,L]


from that file.

SychO

I did that and as you can see when you go to the website it still takes everyone to the forum
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

did you delete BOTH of these lines?

Did you CONFIRM that the file was SAVED? (if you used FTP, there is a good chance that the server rejected the overwrite)
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SychO

Quote from: Kindred on September 02, 2015, 09:33:08 AM
did you delete BOTH of these lines?

Did you CONFIRM that the file was SAVED? (if you used FTP, there is a good chance that the server rejected the overwrite)

i deleted both of these :

RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^/?$ "http\:\/\/dzair\-gaming\.info\/forum" [R=301,L]


and yes indeed i am using FTP.

but when i recheck the file i find it as i saved it. with the lines deleted
Checkout My Themes:
-

Potato  •  Ackerman  •  SunRise  •  NightBreeze

Kindred

if the redirect is still happening, then either
a) the htaccess file was not actually changed
or
b) your server/host has some sort of server side caching.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

Advertisement: