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.
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?
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?
<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
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.
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?
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.
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.