News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

facing problem after moving hosting

Started by thearmykid, February 01, 2013, 08:54:30 PM

Previous topic - Next topic

thearmykid

ok somet stupid as happened i used the repair mod link to fix the links too

But the problem im facing now when someone posts a reply on my forum it takes them back to my old domain any help will be very apreciated thanks

mashby

That for some reason makes no sense. Wondering if your users should clear their cache (which for some reason makes no sense either). Have you cleared out the site's file cache?
Always be a little kinder than necessary.
- James M. Barrie

LiroyvH

Check your .htaccess file as well, in case clearing the cache doesn't cut it.
((U + C + I)x(10 − S)) / 20xAx1 / (1 − sin(F / 10))
President/CEO of Simple Machines - Server Manager
Please do not PM for support - anything else is usually OK.

thearmykid

cleared cache and ran the errors and no errors found

mashby

Interesting. Wondering if you could provide a test account for your site with the ability to reply in any board?
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

http://www.thehackerscrib.net username test password test u will see it redirects back to thehackerscrib.com i looked into the db but everything looks ok i solved one problem in the db why i was there but its not done anything

mashby

Always be a little kinder than necessary.
- James M. Barrie

thearmykid

thehackerscrib.com is my old hosting but thehackerscrib.com is down thats why i moved hosting cause the last hosting couldnt handle traffic so i moved to thehackerscrib.net on a different hosting

that error is the website down on the other hosting

My thought was something is linked wrong still with thehackerscrib.com my hold hosting but i wouldnt know were the heck to look cause the repair settings was all correct and the theme settings is all correct  :-\

mashby

Quote from: CoreISP on February 01, 2013, 09:06:24 PM
Check your .htaccess file as well, in case clearing the cache doesn't cut it.
How about this?
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

# PRETTYURLS MOD BEGINS
# Pretty URLs mod
# http://code.google.com/p/prettyurls/
# .htaccess file generated automatically on: October 24, 2011, 9:15

RewriteEngine on

# Rules for: actions
RewriteRule ^(activate|admin|announce|attachapprove|buddy|calendar|clock|collapse)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(coppa|credits|deletemsg|display|dlattach|editpoll|editpoll2|emailuser)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(findmember|groups|help|helpadmin|im|jseditor|jsmodify|jsoption)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(lock|lockvoting|login|login2|logout|markasread|mergetopics|mlist)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(moderate|modifycat|modifykarma|movetopic|movetopic2|notify|notifyboard|openidreturn)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(pm|post|post2|printpage|profile|quotefast|quickmod|quickmod2)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(recent|register|register2|reminder|removepoll|removetopic2|reporttm|requestmembers)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(restoretopic|search|search2|sendtopic|smstats|suggest|spellcheck|splittopics)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(stats|sticky|theme|trackip|about:mozilla|about:unknown|unread|unreadreplies)/?$ ./index.php?pretty;action=$1 [L,QSA]
RewriteRule ^(verificationcode|viewprofile|vote|viewquery|viewsmfile|who|\.xml|xmlhttp)/?$ ./index.php?pretty;action=$1 [L,QSA]

# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

# Rules for: topics
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1;topic=$2.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([-_!~*'()$a-zA-Z0-9]+)/([0-9]*|msg[0-9]*|new)/?$ ./index.php?pretty;board=$1;topic=$2.$3 [L,QSA]

# PRETTYURLS MOD ENDS

i dont understand that htc file  :-\

mashby

Do you still have the pretty URLs mod installed?
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

Effectively Remove SMF Logo    2.0     [ Uninstall ] [ List Files ] [ Delete ]
2.   Facebook Slide Like Box    2.1     [ Uninstall ] [ List Files ] [ Delete ]
3.   Karma Buttons    1.1     [ Uninstall ] [ List Files ] [ Delete ]
4.   KeyCAPTCHA for SMF    2.4     [ Uninstall ] [ List Files ] [ Delete ]
5.   Sayfa Numarasi    1.0     [ Uninstall ] [ List Files ] [ Delete ]
6.   Pretty URLs    1.0RC5.2     [ Uninstall ] [ List Files ] [ Delete ]
7.   Reason For Editing Mod    2.3.2     [ Uninstall ] [ List Files ] [ Delete ]
8.   Registered Links    3.0     [ Uninstall ] [ List Files ] [ Delete ]
9.   Remove Help From Menu    1.0     [ Uninstall ] [ List Files ] [ Delete ]
10.   SMF 2.0.2 Update    1.0     [ List Files ] [ Delete ]
11.   SMF 2.0.3 Update    1.0     [ Uninstall ] [ List Files ] [ Delete ]
12.   Tinypic Plugin    1.0.0     [ Uninstall ] [ List Files ] [ Delete ]
13.   YouTube BBCode    2.6 

yeah these are the mods i use i dont know if it helps or not  :-\

mashby

This is just me, but I find the pretty URLs mod to be rather useless, but I'm not convinced it's that mod or any that is affecting your site at the moment. Have you made any edits to any of the Themes/ Sources/ files that would have made absolute URLs? Anything in Settings.php that has .com in it?
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

checked the settings php file had 1 error on this line $cachedir = ' so fixed it cleared cache again and nothing will check the theme sources now

thearmykid

Theme directory (templates):/customers/d/6/c/thehackerscrib.net/httpd.www/Themes/defaultURL to above directory:http://thehackerscrib.net/Themes/defaultURL to images directory:http://thehackerscrib.net/Themes/default/images
Core Theme (2.0)
Theme directory (templates):/customers/d/6/c/thehackerscrib.net/httpd.www/Themes/coreURL to above directory:http://thehackerscrib.net/Themes/coreURL to images directory:http://thehackerscrib.net/Themes/core/images
BlackRainV3 (2.0)
Theme directory (templates):/customers/d/6/c/thehackerscrib.net/httpd.www/Themes/BlackRainV3_20g_URL to above directory:http://thehackerscrib.net/Themes/BlackRainV3_20g_URL to images directory:http://thehackerscrib.net/Themes/BlackRainV3_20g_/images
Black Ops (2.0)
Theme directory (templates):/customers/d/6/c/thehackerscrib.net/httpd.www/Themes/Black_Ops_2URL to above directory:http://thehackerscrib.net/Themes/Black_Ops_2URL to images directory:http://thehackerscrib.net/Themes/Black_Ops_2/images
Reset Theme URLs and Directories
Base path to Themes directory: Base URL to the same directory:   everything seems ok here too  :-\

thearmykid

i will uninstall all mods see if this does anything worth i try i suppose

thearmykid

omg lol when i click the  Re: Vip Section Coming Soon in the rules and announcement section that also redirects me to the .com too   :-\

thinking of redoing this forum :-/

mashby

Not sure you have to do that quite yet. It's rather odd to see .com where it should be .net. Who was your old host and who is your new?
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

was on 3owl premium hosting now im on one.com hosting what should i export from my database to keep the posts and threads ? i know to export the members aslong as i have the contents i need like posts,threads,members then i will redo this all again then if i did would i just need to go to php myadmin delete the members and replace with my current members ?

mashby

I don't think you need to worry about your database. Have a look here:
http://thehackerscrib.net/rules-announcements/vip-section-coming-soon!/
The reply button goes to .com. That just is odd if you've run repair_settings and checked Settings.php. Have you really cleared out your site's cache files?
Admin > Maintenance > Routine Maintenance > Empty the file cache
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

ahhhh its something to do with the themes i changed theme now i  cant change back to the gaming theme well i think its something to do with the theme cause the smileys are missing too

thearmykid


Sir Osis of Liver


Oddly, on board index all post links are to .com, but all other links are to .net.

I'm seeing default Curve.



Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

thearmykid

yeah i changed to default curve and now i cant change back :-/

mashby

Check your theme settings then? I see an odd mixture of .com and .net. Perhaps I need more beer to make it all a bit more fuzzier.
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

ok now i change to blackrain i can quote then i reply it leads me to .com and i go back and its posted :-/

mashby

Then it's not a theme issue. When did you change hosts? Not even sure it matters all that much. I did find another beer though so I'm OK for now.
Always be a little kinder than necessary.
- James M. Barrie

Sir Osis of Liver


Links appear to be correct once you get past the board index.  If you click on a board link, the topic and post links are correct, and board works fine.

Theme should not affect the links.  All urls are defined in Settings.php by $boardurl, so they should all be the same.  A bogus redirect shouldn't affect the mouseover links until they're clicked on (I think).

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

Sir Osis of Liver


Only some of the post links on board index are bad, not all.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

mashby

Interesting. On the board index. All of the last post by profile links are .net. the reply links are based on time and old ones go to .net. New ones (as in today) go to .com. Ah. Maybe not. The second board goes to .com and has this time information.
Today at 10:03:56 PM
The one above it is
Today at 10:48:01 PM
and goes to .com. Maybe just sleep on it?
Always be a little kinder than necessary.
- James M. Barrie

thearmykid

<?php

/**
* Simple Machines Forum (SMF)
*
* @package SMF
* @author Simple Machines http://www.simplemachines.org
* @copyright 2011 Simple Machines
* @license http://www.simplemachines.org/about/smf/license.php BSD
*
* @version 2.0
*/

########## Maintenance ##########
# Note: If $maintenance is set to 2, the forum will be unusable!  Change it to 0 to fix it.
$maintenance = '0';      # Set to 1 to enable Maintenance Mode, 2 to make the forum untouchable. (you'll have to make it 0 again manually!)
$mtitle = 'Maintenance Mode';      # Title for the Maintenance Mode message.
$mmessage = 'Okay faithful users...we\'re attempting to restore an older backup of the database...news will be posted once we\'re back!';      # Description of why the forum is in maintenance mode.

########## Forum Info ##########
$mbname = 'TheHackersCrib Were Game Hacking Matters!';      # The name of your forum.
$language = 'english';      # The default language file set for the forum.
$boardurl = 'http://thehackerscrib.net';      # URL to your forum's folder. (without the trailing /!)
$webmaster_email = '[email protected]';      # Email address to send emails from. (like [email protected].)
$cookiename = 'SMFCookie11';      # Name of the cookie to set for authentication.

########## Database Info ##########
$db_type = 'mysql';
$db_server = 'thehackerscrib.net.mysql';
$db_name = 'thehackerscrib_';
$db_user = 'thehackerscrib_';
$db_passwd = '********';
$ssi_db_user = '';
$ssi_db_passwd = '';
$db_prefix = 'smf_';
$db_persist = '0';
$db_error_send = 0;

########## Directories/Files ##########
# Note: These directories do not have to be changed unless you move things.
$boarddir = '/customers/d/6/c/thehackerscrib.net/httpd.www';      # The absolute path to the forum's folder. (not just '.'!)
$sourcedir = '/customers/d/6/c/thehackerscrib.net/httpd.www/Sources';      # Path to the Sources directory.
$cachedir = '//home/thehackerscrib_/public_html/cache';      # Path to the cache directory.

########## Error-Catching ##########
# Note: You shouldn't touch these settings.
$db_last_error = 0;

# Make sure the paths are correct... at least try to fix them.
if (!file_exists($boarddir) && file_exists(dirname(__FILE__) . '/agreement.txt'))
   $boarddir = dirname(__FILE__);
if (!file_exists($sourcedir) && file_exists($boarddir . '/Sources'))
   $sourcedir = $boarddir . '/Sources';
if (!file_exists($cachedir) && file_exists($boarddir . '/cache'))
   $cachedir = $boarddir . '/cache';

$db_character_set = 'utf8';
?>

i blanked the pass out anything wrong here :-/

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

thearmykid

Forbidden

You don't have permission to access /cache on this server.

Sir Osis of Liver

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

thearmykid

Loads of data php files and in the htc file in cache it says <Files *>
   Order Deny,Allow
   Deny from all
</Files>

Sir Osis of Liver


Your .htaccess is correct.  What's in /cache/index.php?

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

thearmykid

<?php

// This file is here solely to protect your cache directory.

// Look for Settings.php....
if (file_exists(dirname(dirname(__FILE__)) . '/Settings.php'))
{
   // Found it!
   require(dirname(dirname(__FILE__)) . '/Settings.php');
   header('Location: ' . $boardurl);
}
// Can't find it... just forget it.
else
   exit;

?>
this is in the index

Sir Osis of Liver


Delete all files in /cache except .htaccess and index.php.

Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

thearmykid

done but still redirecting my forum is so gay lol

Sir Osis of Liver


Makes no sense.  As mashby pointed out, all of the .com post links are from today's posts, but not all of today's posts go to .com - one or two go to .net.  The front end of all those urls comes from $boardurl in Settings.php, which is correct, so they should all be the same.

 
Ashes and diamonds, foe and friend,
 we were all equal in the end.

                                     - R. Waters

thearmykid

anyways im gonna have go sleep now cant stay awake any longer :-/ 4 35 am here so tired thanks guys for all ya help do apreciate it for your time :) ive still got a backup so what im gonna do im just gonna delete all the files and database tommorow and try again see what the results is if i aint any results ill make another post on this thread or something or worst case ill just export all the needed files out of the database and start from the beggining :) thanks guys probably see ya tommorow  :) really do apreciate all this :)

thearmykid

lol starting all again i thought i made a backup of db but didnt :-/ i managed to get the members in time tho lol hey well sh** happens lol

Advertisement: