[Wylug-help] Apache .htaccess file.

Douglas G Mckendrick douglasg.mckendrick at googlemail.com
Tue Oct 20 17:47:42 UTC 2009


Hi all,

> RewriteRule ^/?(.*)         http://www.countrymusic.org.uk/$1 [L,R,NE]

> Ah, I wonder if that question mark after the slash is what Doug needs.

If I add the ? to the file, my web page appears as www.d******.co.uk,
but it won't show anything.  Just an error screen with.....


Redirect Loop

    Redirection limit for this URL exceeded.  Unable to load the
requested page.  This may be caused by cookies that are blocked.

Any Ideas?

Below is a copy of my htaccess file.

<IfModule mod_ssl.c>
	RewriteBase /d******.co.uk/
</IfModule>
<IfModule !mod_ssl.c>
	RewriteBase /
</IfModule>
	RewriteEngine On
	# And for a site running on port 80
	RewriteCond %{HTTP_HOST}   !^www\.d******\.co.uk [NC]
	RewriteCond %{HTTP_HOST}   !^$
	RewriteRule ^/?(.*)         http://www.d*******.co.uk/$1 [L,R]
        RewriteRule ^([^.]*)$ index.cgi/$1 [L,NE]
RewriteEngine On


Cheers

Doug





More information about the Wylug-help mailing list