1
kizun4
about url with or without www
  • 2008/12/16 2:25

  • kizun4

  • Just popping in

  • Posts: 49

  • Since: 2006/9/11


Hi, wanna ask something about url path..

in the mainfile.php there is a path setting..

it's ok when i wrote this :
http://domain.com
and i access it withhttp://domain.com too..
but i got error when i acces it withhttp://www.domain.com

so.. i wanna ask.. what should i set in the path setting in mainfile.php?

ishttp://domain.com orhttp://www.domain.com

in the end, i wanna get my site can be access trough
http://domain.com orhttp://www.domain.com

is there any conclusion?
thx before.. :)

2
Robustus
Re: about url with or without www
  • 2008/12/16 9:59

  • Robustus

  • Just popping in

  • Posts: 30

  • Since: 2008/5/19


hello kizun4,
if your server support RewriteEngine sethttp://www.domain.com in the mainfile. create a .htaccess and write in:
RewriteEngine on  
RewriteCond 
%{HTTP_HOST} !^www.domain.com
RewriteRule ^(.*)$ http://www.domain.com/$1 [L,R=301]

In this case it will always switch tohttp://www.domain.com, no matter if you type with or without www.
it is also good for preventing duplicate content.

3
kizun4
Re: about url with or without www
  • 2008/12/17 10:54

  • kizun4

  • Just popping in

  • Posts: 49

  • Since: 2006/9/11


hi, thx for your reply..

but, where i should put that .htaccess file that i made?

inside XOOPS root folder? the same path with mainfile.php file?

thx..

Login

Who's Online

235 user(s) are online (156 user(s) are browsing Support Forums)


Members: 0


Guests: 235


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Apr 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits