Clean URLs

Clean URLs on 1and1

I’ve deleted the MySQL database and started again… the pre-flight check worked, but then I couldn’t see a default page. This was the .htaccess file

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) index.php

And then I found the answer on the forum ; a single character change, and we’re in business!

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^(.+) – [PT,L]
RewriteRule ^(.*) /index.php

The left hand menu is hard-coded as a form (the pages are not yet contained within Textpattern), and this form is inserted in the left menu with this code:

<txp:output_form form="leftnav" wraptag="p" />

/*************************************/

The ‘container’ div now has a simple graphic applied; default.css has been modified:

background-image: url(/images/1.jpg);
background-repeat: no-repeat;
background-position: center top;

The container div is 770px wide (It was 760), so applying a background image to the containing element (in this case body), allows a background to extend down the page.