0
Welcome Guest! Login
0 items Join Now

You are not authorized to access that page, please login...

ROCKETTHEME IS CLOSING ON JUNE 30, 2025. As a thank-you to our community, enjoy 50% off all themes with the promo code THANKYOU before we shut down. Read our Farewell Blog Post for more details.

Why the Difference Without the http://

    • John Hodgkinson's Avatar
    • John Hodgkinson
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0
    • Retired, but build and run websites for organisations of school leaders and others - e.g. http://www.icponline.org, http://www.aspa.asn.au, http://www.appa.asn.au

    Why the Difference Without the http://

    Posted 15 years 6 months ago
    • I hope that this will be my final question for today.

      I moved one of my websites from being a subdomain under www.jhonlinenet.com to having its own domain - assetsc21.info. The files that the subdomain used are still in the folder inside the jhonlinenet.com installation, and I can still access the subdomain using www.jhonlinenet.com/assetsc21 .

      Now if I use www.assetsc21.info , the website comes up as it should. Woohoo, Joomlapack worked for me!

      But if I use assetsc21.info , the website that comes up is the one that uses the www.jhonlinenet.com domain name - I don't want that to happen.

      Question 1: Why is that so?

      Question 2: Should I delete the files from the subdomain folder?
    • dle_web's Avatar
    • dle_web
    • Sr. Rocketeer
    • Posts: 105
    • Thanks: 0

    Re: Why the Difference Without the http://

    Posted 15 years 6 months ago
    • could be something in your .htaccess, still pointing to that address that's wrong by now? redirects?
      or stuff like:
      RewriteCond %{HTTP_HOST} !^www\.jhonlinenet\.com$
      RewriteRule ^(.*)$ www.jhonlinenet.com/$1 [L,R=301]
      always rename first and wait or test before deleting.
    • John Hodgkinson's Avatar
    • John Hodgkinson
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0
    • Retired, but build and run websites for organisations of school leaders and others - e.g. http://www.icponline.org, http://www.aspa.asn.au, http://www.appa.asn.au

    Re: Why the Difference Without the http://

    Posted 15 years 6 months ago
    • My .htaccess is below. What might I change that would help?

      # -FrontPage-

      IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*

      <Limit GET POST>
      order deny,allow
      deny from all
      allow from all
      </Limit>
      <Limit PUT DELETE>
      order deny,allow
      deny from all
      </Limit>
      AuthName assetsc21.info
      AuthUserFile /home/assets/public_html/_vti_pvt/service.pwd
      AuthGroupFile /home/assets/public_html/_vti_pvt/service.grp
    • dle_web's Avatar
    • dle_web
    • Sr. Rocketeer
    • Posts: 105
    • Thanks: 0

    Re: Why the Difference Without the http://

    Posted 15 years 6 months ago
    • Unfortunately i can't tell you what might help there 'cause I've never seen such .htaccess (seems to me it's only about user permissions), I was talking about the .htaccess in your servers root or the root folder of your joomla installation. Always thought it
      must be looking like this:
      This attachment is hidden for guests. Please log in or register to see it.
      This is the default .htaccess that comes along with joomla.
    • John Hodgkinson's Avatar
    • John Hodgkinson
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0
    • Retired, but build and run websites for organisations of school leaders and others - e.g. http://www.icponline.org, http://www.aspa.asn.au, http://www.appa.asn.au

    Re: Why the Difference Without the http://

    Posted 15 years 6 months ago
    • That file in my previous posting is the .htaccess file. There is also a htaccess.txt file in the same folder - in the root folder of the Joomla installation. That txt file looks like yours above. Is there something that I am not doing with the txt file?
    • Terp's Avatar
    • Terp
    • Elite Rocketeer
    • Posts: 1720
    • Thanks: 23

    Re: Why the Difference Without the http://

    Posted 15 years 6 months ago
    • With my naked, untrained eye, I see no difference. ;)

      However, I always use this in my htaccess, which should solve the problem (if it still exists); drop this in right after the "RewriteEngine On" line:
       
      RewriteCond %{HTTP_HOST} ^yoursite.com [NC]
      RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301] 
       

      So if someone types in yoursite.com, they will be redirected to the www.yoursite.com
    • John Hodgkinson's Avatar
    • John Hodgkinson
    • Hero Rocketeer
    • Posts: 421
    • Thanks: 0
    • Retired, but build and run websites for organisations of school leaders and others - e.g. http://www.icponline.org, http://www.aspa.asn.au, http://www.appa.asn.au

    Re: Why the Difference Without the http://

    Posted 15 years 6 months ago
    • Thanks very much for your help, both of you. I'll get onto it today.
    • dle_web's Avatar
    • dle_web
    • Sr. Rocketeer
    • Posts: 105
    • Thanks: 0

    Re: Why the Difference Without the http://

    Posted 15 years 5 months ago
    • ok, no warranty for whatever happens and copy your .htaccess and store it elsewhere
      then put into your .htaccess:

      RewriteEngine On
      RewriteCond %{HTTP_HOST} !^www\.assetsc21.info\.com$
      RewriteRule ^(.*)$ www.assetsc21.info/$1 [L,R=301]

      that should do the trick

      edit: uups, just saw Terp earlier posting some lines of code too, they are slightly different to mine, try his ones first 'cause he's "Elite Rocketeer" :cheesy: what I posted is working well for me on my server.

Time to create page: 0.090 seconds