Forum Moderators: phranque
But the redirect for line 2 and 3 will redirect like this:
http://example.com/index.php?ID=1/subdirectory
...to a new URL that's shorter but ends in "index.php?query=blahblah". Is it possible you've got your patterns and targets mixed?
So the logical url on site A;
siteA.com/nor/school/about i want to redirect to siteB.com/index.php?ID=4 (and I have a modrewrite there, so it will convert it to the right logical url there)
I have to redirect to the ID.. because the locical url is different on SiteB from SiteA, but the ID is the same
Hhmmm, nope, don't get it.
so it will convert it to the right logical url there
The redirects I was talking about are located on different places. They was identical
if you write a url like this example.com/index.php?ID=44 it will become for instance example.com/nor/school/project in the browsers url
RewriteCond %{THE_REQUEST} index\.php?ID=44
RewriteRule index\.php http://www.example.com/nor/school/project [R=301,L] RewriteRule ^nor/school/project /index.php?ID=44 [L] An employee want to find c . The only way I can redirect to that new page is to redirect to the ID.. For on SiteA, I only now the url, not the new path on SiteB.
RewriteCond %{HTTP_HOST} example\.com
RewriteRule ^(nor/)(about/)internal/(logo) http://www.example.no/$1employee/$2$3 [R=301,L]