Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
.htaccess file won't work
Options
-
22-01-2008 12:33amHave my new blog set up at http://basquille.net but would like a .htaccess file in place in order to force people to use http://www.basquille.net.
My .htaccess file is in my 'public_html' folder and is as follows:RewriteEngine on RewriteCond %{HTTP_HOST} ^basquille.net [NC] RewriteRule ^(.*)$ http://www.basquille.net/$1 [L,R=301]
When i tried this, I got '500 Internal Server Error' so I removed it temporarily untl I fix it.
Any ideas?0
Comments
-
File permissions (readable by whatever user the web server runs as)?
Are you Allowed to Override by server config?0 -
Unsure about that.. how would I check?
EDIT: The redirect is somewhat working now but it's moving in between http://basquille.net and http://www.basquille.net until I get a redirection error.The page isn't redirecting properly
Firefox has detected that the server is redirecting the request for this address in a way that will never complete.0 -
give this a try:
Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^\.htaccess$ - [F] # redirect all other domains to www.basquille.net RewriteCond %{HTTP_HOST} !^www\.basquille\.net RewriteRule ^(.*)$ http://www.basquille.net/$1 [R=301,L,NC] #redirect index.php or htm to / RewriteCond %{THE_REQUEST} ^GET\ .*/index\.(htm|html|php)\ HTTP RewriteRule ^(.*)index\.(htm|html|php)$ /$1 [R=301,L,NC]
0 -
Cheers louie.
Tried that and it's the same as above.
Have left it in place to show it's effect:
In Firefox, it seems to redirect between http://basquille.net and http://www.basquille.net until a redirection error occurs.
In IE, it trys to open http://basquille.net just stalls at the 'opening page' stages until a 'Cannot find server'' error is displayed.
PS - am using CPanel X as my administration panel just in case someone knows of an easier way in that.0 -
You must have something else in place.
Create a new index.php file (blank) and try it again.0 -
Advertisement
-
this is what I got in FF - way too much - some other pages or feeds are creating the problem:http://basquille.net/
GET / HTTP/1.1
Host: basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
X-navid: dd8-76826e
X-browser-timestamp: 0
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:21 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Location: http://www.basquille.net/
Content-Type: text/html; charset=iso-8859-1
Via: HTTP/1.1 GWA
X-fetchid: 3548
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 436
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:21 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3549
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 2707
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:24 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3550
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 3232
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:24 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3551
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 3741
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:25 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3552
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 4276
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:25 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3553
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 4960
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:26 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3554
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 5713
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:27 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3555
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 6264
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:27 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3556
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 7295
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:28 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3557
Connection: keep-alive
Transfer-Encoding: chunked
http://www.basquille.net/
GET / HTTP/1.1
Host: www.basquille.net
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Language: en-gb,en;q=0.5
Accept-Encoding: gzip,deflate
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Keep-Alive: 300
Proxy-Connection: keep-alive
Cookie: PHPSESSID=defb18b4321a6d98f70239053d8f8b8e
X-navid: dd8-76826e
X-browser-timestamp: 9064
HTTP/1.x 301 Moved Permanently
Date: Tue, 22 Jan 2008 10:10:30 GMT
Server: Apache/1.3.39 (Unix) mod_log_bytes/1.2 mod_bwlimited/1.4 mod_auth_passthrough/1.8 FrontPage/5.0.2.2635 mod_ssl/2.8.30 OpenSSL/0.9.8b
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Expires: Thu, 19 Nov 1981 08:52:00 GMT
its-insert-response: Error (Input mode is set to 'GET' but no variables are passed!)
its-status: enabled
its-version: 2.3.0
Pragma: no-cache
X-Pingback: http://basquille.net/xmlrpc.php
X-Powered-By: PHP/5.2.5
Location: http://basquille.net/
Content-Type: text/html; charset=UTF-8
Via: HTTP/1.1 GWA
X-fetchid: 3558
Connection: keep-alive
Transfer-Encoding: chunked0 -
Cheers louie.
Put a 'index.php' in place with just the message 'Down for maintenance'.
Seemed to work when I go to http://basquille.net (it now redirects.. but unsure of why there's a problem with my index.php). It's a simple enough WordPress.
PS - is it possible it could be plugins on my Wordpress sidebar which reference http://basquille.net?0 -
remove things you have one by one and check it out until it works.
you have links to pages like this:
http://basquille.net/page.rss where it should be http://www.basquille.net/page.rss
so fix them first0 -
Cheers louie.. you're a lifesaver!
Figured out my problem.. all my links to images and such were leading with http://www.basquille.net although my wordpress and blog address in WordPress admin were both http://basquille.net - whoops - all my own fault!
Thanks again!0 -
you are welcome.0
-
Advertisement
Advertisement