Quote:
Originally Posted by loua_oz
it was in post #8.
Contents of .htaccess
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?mysite.com$
RewriteRule ^(/)?$ forums
it is in /public_html directory.
www.srbijadotokija.com now goes nowhere.
|
I wasn't aware because you edited the post. The first one you posted was from the /forums directory.
--------------- Added [DATE]1404488179[/DATE] at [TIME]1404488179[/TIME] ---------------
Quote:
Originally Posted by ForceHSS
I thought you had it in your root if you told me you did not it would of saved a lot of time but it would still be better to transfer all files to outside the forum folder and not have a forums folder at all then you would not have problems
|
I also thought this as this was what he said. Oh well, as long as it works.. Things like this are usually simple but hard to figure out unless we can go in ourselves.
--------------- Added [DATE]1404488238[/DATE] at [TIME]1404488238[/TIME] ---------------
Also, he said it happened suddenly and he did not do anything..
--------------- Added [DATE]1404488329[/DATE] at [TIME]1404488329[/TIME] ---------------
Quote:
Originally Posted by loua_oz
There are only directories and 1 file: .htaccess provided in this thread in the root directory.
No index.html or index.php in root.
.htaccess file , 3 leading lines are
RewriteEngine on
RewriteCond %{HTTP_HOST} ^srbijadotokija.com [NC]
RewriteRule ^(.*)$ http://www.srbijadotokija.com/forums/$1 [R=301,L]
(it is much longer)
--------------- Added 04 Jul 2014 at 05:51 ---------------
Far out...
seems it's IE 11 that was causing failures to whatever I have tried.
Now, my old .htaccess works, new one provided by ForceHSS works as well.
The original problem was that .htaccess file somehow ended up in /public_html/forums/ directory.
When I moved it to /public_html then a totally unrelated problem started happening:
- The laptop where it did not work has IE 11 browser.
- Another desktop, has IE 10 and it was not working there.
- The laptop where it works has IE 8 browser, but that one was not used for testing what was being changed. When I did, presto!
When you guys said "works for me" I should have realized you could be using Firefox or whatever else.
Thanks to all who replied.
The moral of the story could be:
- ensure .htaccess is in the root directory
- try different browser
|
I am still a bit confused. The redirects should work in any browser if it is in the right place, the root.