Code:
RewriteEngine on
# rewrite old site url, has L so processig will stop here for matching requests.
RewriteCond %{QUERY_STRING} ^page=9-someting&txt=12$
RewriteRule index.php /page/1/someting#2/other [R=301,L,NE]
# request that fall trouhg will be sent to CI's front controller (if they are not images, css....)
RewriteCond $1 !^(index\.php|images|css|img|js|plugins|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
RewriteEngine on
# rewrite old site url, has L so processig will stop here for matching requests.
RewriteCond %{QUERY_STRING} ^page=9-someting&txt=12$
RewriteRule index.php /page/1/someting#2/other [R=301,L,NE]
# request that fall trouhg will be sent to CI's front controller (if they are not images, css....)
RewriteCond $1 !^(index\.php|images|css|img|js|plugins|robots\.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
posle svakog redirecra url izgleda ovako:
Code:
mojsite.com/[novi url] ? [stari url]
mojsite.com/[novi url] ? [stari url]
zeleo bih da to izbegnem
Desava se loop ukoliko redirektujem:
Code:
RewriteCond %{QUERY_STRING} ^page=9-someting&txt=12$
RewriteRule index.php /other [R=301,L,NE]
RewriteCond %{QUERY_STRING} ^page=9-someting&txt=12$
RewriteRule index.php /other [R=301,L,NE]
Moze pomoc?