View Single Post
  #22  
Old 07-04-2014, 02:34 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by loua_oz View Post
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 View Post
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 View Post
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.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01272 seconds
  • Memory Usage 1,784KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete