Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 08-04-2009, 12:48 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,603
arlecchina
Default Removing www. from url [SOLVED]

I am running a test site on my computer. The url is http://localhost/
How do I remove the www. from automatically inserting into every URL?

Thanks for any information in advance.
Reply With Quote
  #2  
Old 08-04-2009, 06:13 PM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,681
BMR777 is on a distinguished road
Default RE: Removing www. from url

It shouldn't be auto-adding a www. to the links. What links in particular is this happening on? I can take a look at the code for those specific links. Also, in inc > config.php your domain doesn't have www. in it, correct? :)
Reply With Quote
  #3  
Old 08-04-2009, 09:22 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,603
arlecchina
Default RE: Removing www. from url

Quote:
Originally Posted by BMR777
It shouldn't be auto-adding a www. to the links. What links in particular is this happening on? I can take a look at the code for those specific links. Also, in inc > config.php your domain doesn't have www. in it, correct? :)
There's no www. in the domain.
PHP Code:
$domain 'localhost';                //Your domain name (No http, www or . )
$scriptpath 'directory';        //The folder you installed this script in 
I was only assuming that it was the www. that is the problem. But now since you said that the www. isn't automatically inserted...i'm not sure what the problem could be.

I am using WAMP.
I know that the config.php file is correct regarding database, database user and password. I am unsure if I am inputting the right "domain" (in quotes since it's not a domain...it's local host) and directory.

When you go the site locally it's supposed to be

http://localhost/directory/

however I get a 500 Internal Server Error.

Any ideas why?
Reply With Quote
  #4  
Old 08-05-2009, 10:30 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,681
BMR777 is on a distinguished road
Default RE: Removing www. from url

Do you have any .htaccess files anywhere in there? Sometimes .htaccess files are the cause of 500 errors. You can remove the .htaccess files from the picuploads > gif and picuploads > jpg folders and see if that makes a difference. Also, the .htaccess file in the main adoptables script directory may cause issues if you have enabled it for shorter picture URLs in signatures.

Let me know if that helps. :)
Reply With Quote
  #5  
Old 08-05-2009, 11:11 AM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,603
arlecchina
Default RE: Removing www. from url

That helped! Thank you very much.

However, now the local host site loads but at the top of the page are all these notices which are NOT on the live online site.

Do you think it has to do with the PHP version? My online host is running
5.2.5 but my local host is running 5.3.0.
Quote:
Notice: Undefined variable: nid in C:\Program Files\wamp\www\directory\lang\lang.php on line 566

Notice: Undefined variable: nid in C:\Program Files\wamp\www\directory\lang\lang.php on line 570

Notice: Use of undefined constant loginstatus - assumed 'loginstatus' in C:\Program Files\wamp\www\directory\inc\functions.php on line 133

Notice: Use of undefined constant username - assumed 'username' in C:\Program Files\wamp\www\directory\inc\functions.php on line 134

Notice: Use of undefined constant loginstatus - assumed 'loginstatus' in C:\Program Files\wamp\www\directory\inc\functions.php on line 166

Notice: Use of undefined constant username - assumed 'username' in C:\Program Files\wamp\www\directory\inc\functions.php on line 167

Notice: Use of undefined constant content - assumed 'content' in C:\Program Files\wamp\www\directory\inc\functions.php on line 59

Notice: Use of undefined constant title - assumed 'title' in C:\Program Files\wamp\www\directory\inc\functions.php on line 60

Notice: Use of undefined constant title - assumed 'title' in C:\Program Files\wamp\www\directory\profile.php on line 42

Notice: Use of undefined constant content - assumed 'content' in C:\Program Files\wamp\www\directory\profile.php on line 43

Notice: Use of undefined constant loginstatus - assumed 'loginstatus' in C:\Program Files\wamp\www\directory\inc\functions.php on line 133

Notice: Use of undefined constant username - assumed 'username' in C:\Program Files\wamp\www\directory\inc\functions.php on line 134

Notice: Use of undefined constant loginstatus - assumed 'loginstatus' in C:\Program Files\wamp\www\directory\profile.php on line 59

Notice: Use of undefined constant username - assumed 'username' in C:\Program Files\wamp\www\directory\profile.php on line 60

Notice: Undefined index: page in C:\Program Files\wamp\www\directory\profile.php on line 72

Notice: Undefined variable: article_date in C:\Program Files\wamp\www\directory\profile.php on line 288

Notice: Use of undefined constant loginstatus - assumed 'loginstatus' in C:\Program Files\wamp\www\directory\inc\functions.php on line 133

Notice: Use of undefined constant username - assumed 'username' in C:\Program Files\wamp\www\directory\inc\functions.php on line 134

Notice: Use of undefined constant loginstatus - assumed 'loginstatus' in C:\Program Files\wamp\www\directory\inc\functions.php on line 312

Notice: Use of undefined constant username - assumed 'username' in C:\Program Files\wamp\www\directory\inc\functions.php on line 313
Reply With Quote
  #6  
Old 08-05-2009, 11:22 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 10,681
BMR777 is on a distinguished road
Default RE: Removing www. from url

I don't think these are anything to worry about, as they are simply debug notices and not anything critical. You can hide them by making the following change to your localhost server's php.ini file:

http://forum.mamboserver.com/showpost.php?s=2103d7feb6a94d8c0c0270a6b56ad1fb&p= 384326&postcount=4

They're only there for debugging and don't show up on the live server because reporting of notices is usually disabled on production servers. :)
Reply With Quote
  #7  
Old 08-05-2009, 12:03 PM
arlecchina arlecchina is offline
Member
 
Join Date: Feb 2009
Posts: 65
Credits: 3,603
arlecchina
Default RE: Removing www. from url

Thanks Brandon. You've been a big help.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing certain features? zoe Questions and Supports 2 05-22-2015 06:15 PM
removing the word logo in banner GuardiansWish Templates and Themes 2 03-29-2013 01:06 PM
Removing or Disabling Currency VerusAnimus Questions and Supports 3 04-17-2011 02:06 AM
[SOLVED] trollis76 Questions and Supports 4 06-10-2009 01:50 PM
Solved omegatsuki Questions and Supports 7 05-12-2009 10:08 PM


All times are GMT -5. The time now is 03:39 PM.

Currently Active Users: 592 (0 members and 592 guests)
Threads: 4,080, Posts: 32,024, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636