Welcome Guest, Not a member yet? Register   Sign In
.htaccess - Old site URLs to New site
#1

[eluser]weetstraw[/eluser]
I converted an old site to use the codeigniter framework and have a question about routing the old urls to the new.

I am using the standard rewrite to get rid of the index.php and towards the end I'm trying to achieve what I'm talking about above. It does not seem to work, any ideas?

Code:
DirectoryIndex index.php

RewriteEngine on
RewriteCond $1 !^(index\.php|images|css|js|pdf|swf|xml|robots\.txt|favicon\.ico)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]

RewriteRule ^project-(.*)-(.*).html$ projects/detail/$1/$2




Theme © iAndrew 2016 - Forum software by © MyBB