Tagged: .htaccess
-
AuthorPosts
-
August 13, 2015 at 10:49 am #487062
Hi,
actually has nothing to do with enfold. But I dont know where else i could get this answer. I need to redirect old pages form typo3 to the new installation of wordpress with enfold. The “normal” redirect rules dont work, cause of the part “index.php” in the old typo3 – urls.
I want to redirect e.g.
Redirect 301 http://lodenwalker.at/cms/index.php?id=6 http://lodenwalker.at/lodenwalke/
Typically htaccess for wordpress:<IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
I tried “normal” redirect, which does not work. Redirect with query strings (which are needed i guess) are way out of my programming knowledge.
Can you help me out?
Thanks in advance.August 13, 2015 at 11:19 pm #487493Hello,
Would suggest you trying out a plugin like this:
https://wordpress.org/plugins/redirection/Best regards,
JosueAugust 14, 2015 at 8:23 am #487581Hi Josue,
not really. This plugin redirects post and pages inside wordpress. With this plugin you cannot redirct formerly known urls from an old website to the wordpress site.August 14, 2015 at 9:11 am #487598Hey!
Hm, to be honest i’m not familiar with typo3 but i think the rule should be something like this:
Redirect 301 /cms/index.php?id=6 http://lodenwalker.at/lodenwalke/
The first parameter should not be an absolute path.
Best regards,
JosueAugust 14, 2015 at 11:49 am #487681Hi Josue,
Now i tried this codeRewriteCond %{QUERY_STRING} ^id=6$ RewriteRule ^cms/index\.php$ /lodenwalke/ [R=301,L]
and the redirect goes from
http://www.lodenwalker.at/cms/index.php?id=6
to
http://www.lodenwalker.at/lodenwalke/?id=6
which is pretty close. So i only need to skip the variable ?id=6
Do you know how?
thanks.August 14, 2015 at 8:49 pm #487960Unfortunately no, try posting your question in StackOverflow.
Best regards,
JosueAugust 17, 2015 at 12:06 pm #488816Hi Josue,
got it.
This is the htaccess Code that redirect old urls vom typo3 to wordpress# Redirect 301 from eg /cms/index.php?id=6 to /file/#anchor RewriteCond %{QUERY_STRING} id=6 RewriteRule ^cms/index\.php$ /lodenwalke/#geschichte? [NE,L,R=301]
-
AuthorPosts
- The topic ‘htaccess, redirect 301, index.php’ is closed to new replies.