Webmaster Forum


Go Back   Webmaster Forum > Web Development > Coding Forum

Coding Forum Problems with your code? Discuss coding issues, including JavaScript, PHP & MySQL, HTML & CSS, Flash & ActionScript, and more.


Reply
 
LinkBack Thread Tools Display Modes
Share |
  #1 (permalink)  
Old 03-10-2007, 06:13 AM
Junior Member
 
Join Date: 03-10-07
Posts: 2
iTrader: 0 / 0%
Problem with www.* prepending itself to my urls automatically

Hi,

I'm having the wierdest problem with my server, and I just can't figure it out: every url I type in that leads to a page outside of the main directory (e.g. /website/), is automatically redirected to the same url, but with www.* prepended to it, unless I type the url with a trailing "/". So, typing http://mysite.com/site would redirect me to http://www.mysite.com/site/, but http://mysite.com/site/ would stay the same. What could be causing this? It's really quite a neusance.

Thanks,

Chris
 
Reply With Quote
  #2 (permalink)  
Old 03-10-2007, 06:00 PM
Member
Latest Blog:
None

 
Join Date: 04-30-05
Location: .ma.us
Posts: 55
iTrader: 1 / 100%
some sort of server setting. It sees that there is no file /site, but it does find that there is a folder /site/ so it redirects and somewhere in the code for redirect it adds the www.

Im no server whiz, but there is probably something you can change/edit
 
Reply With Quote
  #3 (permalink)  
Old 03-10-2007, 07:51 PM
Contributing Member
Latest Blog:
None

 
Join Date: 12-13-06
Posts: 164
iTrader: 0 / 0%
mod rewrite could be doing that
__________________
List your items for free at Free Auctions(a free ebay alternative )
W3c valid tableless xhtml+css coder 25$ per page and up. CSS repair 10$ and up. With work examples.
 
Reply With Quote
  #4 (permalink)  
Old 03-10-2007, 08:26 PM
Junior Member
 
Join Date: 03-10-07
Posts: 2
iTrader: 0 / 0%
mod_rewrite isn't installed afaik
 
Reply With Quote
  #5 (permalink)  
Old 03-12-2007, 03:56 AM
Contributing Member
Latest Blog:
None

 
Join Date: 02-15-07
Posts: 88
iTrader: 0 / 0%
I would check out your .htaccess file to make sure that mod rewrite hasn't been turned on. Looks a lot like a mod rewrite problem.
__________________
Mindloop webontwikkeling |
Design to XHTML/CSS
 
Reply With Quote
  #6 (permalink)  
Old 03-20-2007, 10:35 AM
LazyJim's Avatar
v7n Mentor
Latest Blog:
None

 
Join Date: 10-13-03
Location: UK
Posts: 2,469
iTrader: 0 / 0%
Maybe someone in the coding forum could help?
__________________

-LJ-

My advice is to look at each case individually, with an informed mind and an appropriately balanced and objective viewpoint.

Web Design and Development, Ipswich, UK.
My deviantArt
 
Reply With Quote
  #7 (permalink)  
Old 03-20-2007, 10:37 AM
WorldwideTrading's Avatar
Senior Member
Latest Blog:
None

 
Join Date: 01-22-06
Location: Exeter, East Devon, England, UK
Posts: 564
iTrader: 0 / 0%
Is there a file named .htaccess in the root of your website? If there is rename it, does the problem still happen?
__________________
Current Project: http://www.starrecottages.co.uk/
 
Reply With Quote
Go Back   Webmaster Forum > Web Development > Coding Forum

Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to empty cache automatically? fireheart007 Web Design Lobby 4 02-04-2008 01:43 PM
Wordpress Plugin to Automatically Post Dustin07 Blogging Forum 29 12-06-2006 08:13 AM
Is %20 a Problem in URLs jabeen32 Google Forum 7 01-16-2006 11:50 AM


V7N Network
Get exposure! V7N I Love Photography V7N SEO Blog V7N Directory


All times are GMT -7. The time now is 11:30 AM.
Powered by vBulletin
Copyright © 2000-2013 Jelsoft Enterprises Limited.
Copyright © 2003 - 2013 Escalate Media LP




Search Engine Optimization by vBSEO 3.6.0 RC 2 ©2011, Crawlability, Inc.