Home Community Mys-Script Creative Off-Topic |
|
|
Thread Tools | Display Modes |
#1
|
|||
|
|||
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. |
#2
|
|||
|
|||
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? :)
|
#3
|
|||
|
|||
RE: Removing www. from url
Quote:
PHP Code:
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? |
#4
|
|||
|
|||
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. :) |
#5
|
|||
|
|||
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:
|
#6
|
|||
|
|||
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. :) |
#7
|
|||
|
|||
RE: Removing www. from url
Thanks Brandon. You've been a big help.
|
|
|
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 |
What's New? |
What's Hot? |
What's Popular? |