tomED wrote: » It sounds like you are forgeting one fundemental issue... and that is that you are referencing each item by an ID. So in effect you need to carry that ID in the url. For example: /myarticlename/12/ or /12/myarticlename/
The htaccess file doesn't seem to be correctly set up to what you want to do either.
tomED wrote: » Ok Sully Well you'll have to give better examples and explain a little more. You won't be able to run both side by side - you'll have to run one or the other (if they are in the same directory). Tom
Sully wrote: » This has been fixed, thanks for your assistance. A friend of mine across the water is a developer so he helped me out on addressing this tonight. The blog didnt need be in a seperate directory and worked fine with the current setup. The problem was the code we added to the .htaccess was just slightly incorrect and resulted in errors. Just some minor tweaks and it was working perfectly. We now have the site running as it was, with a blog using friendly URLs in the root. Thanks again
CuLT wrote: » Was pointed to this nifty looking htaccess generator recently. Will probably give it a whirl next time I have to do something with htaccess I'm not familiar with, but you might find it useful
tomED wrote: » Excellent - any chance of seeing the finalised htaccess file for future reference?
RewriteEngine On RewriteBase / RewriteRule ^blog/(.*) blog.php?name=$1 [L] # remove .php; use THE_REQUEST to prevent infinite loops RewriteCond %{THE_REQUEST} ^GET\ (.*)\.php\ HTTP RewriteRule (.*)\.php$ $1 [R=301] # remove index RewriteRule (.*)/index$ $1/ [R=301] # remove slash if not directory RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} /$ RewriteRule (.*)/ $1 [R=301] # add .php to access file, but don't redirect RewriteCond %{REQUEST_FILENAME}.php -f RewriteCond %{REQUEST_URI} !/$ RewriteRule (.*) $1\.php [L]