Although I have worked through other entries with the same theme I was not able to find a solution for my particular problem.
Right now my URL-structure is like
http://www.abc.com/in/something/bla
I changed some settings and removed the /in/, now the URL-structure is
http://www.abc.com/something/bla
I want to redirect permanently to the new structure.
None of the solutions I found @stackoverflow and in the web worked for me, therefore I paste (parts of) my htaccess-code beneath. It works perfectly except for the removal of /in/.
Thanks in advance for helping me out!
<IfModule mod_rewrite.c>
# Enable Rewrite Engine
# ------------------------------
RewriteEngine On
RewriteBase /
# Redirect index.php Requests
# ------------------------------
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteCond %{THE_REQUEST} !/system/.*
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,L]
# Standard ExpressionEngine Rewrite
# ------------------------------
RewriteCond $1 !\.(css|js|gif|jpe?g|png) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]
</IfModule>
# remove trailing slash
# 05.10.2012
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} ^(.+)/$
RewriteRule ^(.+)/$ /$1 [R=301,L]
Using mod_alias:
Using mod_rewrite:
You’ll want to put those close to the top, just under your
RewriteBase