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
 
Thread Tools Display Modes
Share |
  #1  
Old 03-10-2007, 07:13 AM
knowledgedot knowledgedot is offline
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

Advertisement

Advertisement

  #2  
Old 03-10-2007, 07:00 PM
droplister droplister is offline
Contributing Member
 
Join Date: 04-30-05
Location: .ma.us
Posts: 56
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  
Old 03-10-2007, 08:51 PM
007c 007c is offline
Contributing Member
 
Join Date: 12-13-06
Posts: 164
iTrader: 0 / 0%
mod rewrite could be doing that
 
Reply With Quote
  #4  
Old 03-10-2007, 09:26 PM
knowledgedot knowledgedot is offline
Junior Member
 
Join Date: 03-10-07
Posts: 2
iTrader: 0 / 0%
mod_rewrite isn't installed afaik
 
Reply With Quote
  #5  
Old 03-12-2007, 03:56 AM
atox atox is offline
Contributing Member
 
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.
 
Reply With Quote
  #6  
Old 03-20-2007, 10:35 AM
LazyJim's Avatar
LazyJim LazyJim is offline
v7n Mentor
 
Join Date: 10-13-03
Location: UK
Posts: 2,469
iTrader: 0 / 0%
Maybe someone in the coding forum could help?
 
Reply With Quote
  #7  
Old 03-20-2007, 10:37 AM
WorldwideTrading's Avatar
WorldwideTrading WorldwideTrading is offline
Senior Member
 
Join Date: 01-22-06
Location: Exeter, East Devon, England, UK
Posts: 563
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?
 
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

Forum Jump

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


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


All times are GMT -7. The time now is 01:35 PM.
Powered by vBulletin
Copyright 2000-2014 Jelsoft Enterprises Limited.
Copyright © 2003 - 2018 VIX-WomensForum LLC