CodeIgniter Forums
.htaccess 301 redirect - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: .htaccess 301 redirect (/thread-54385.html)

.htaccess 301 redirect - El Forum - 09-06-2012

Hi everybody.

I need to redirect old urls to new ones and make www-redirect to www-less url using .htaccess

My .htaccess
RewriteEngine on
RewriteCond $1 !^(index\.php|robots\.txt|images|gallery-images|articles-images|css|js)
RewriteRule ^(.*)$ /index.php?/$1 [L]

RewriteCond %{HTTP_HOST} ^\.ua
RewriteRule ^(.*)$$1 [R=permanent,L]

Redirect 301 /old-link

I received such problems: - (why index.php? appears?) - (why old link appears in the end and no redirection happens)

Please, need help.

.htaccess 301 redirect - El Forum - 09-11-2012

Any ideas? Maybe somebody post his working .htaccess? I will be appreciate for it.