Redirect 302 for old links
Sobiech 77
From: -
From: -
Notice
This topic is archived. New comments cannot be posted and votes cannot be cast.Responses to this topic
1 Re: Redirect 302 for old links
Sobiech
OP
77
From: -
From: -
.htaccess from old site:
$1 is a number of a news
$2 is a title of the news
--------------------------
OK. I solved the problem in a different way.
RewriteEngine on
RewriteBase /
RewriteRule ^news-([^-]+)-([^-]+).html$ /modules.php?name=News&file=article&sid=$1&$2 [L]
$1 is a number of a news
$2 is a title of the news
--------------------------
OK. I solved the problem in a different way.
1 Re: Redirect 302 for old links
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Actually, I need that one from your old PHP-Nuke website
1 Re: Redirect 302 for old links
Sobiech
OP
77
From: -
From: -
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# You may need to adjust the RewriteCond line below to exclude additional directories
RewriteCond %{REQUEST_FILENAME} !^(cadmin|jscripts|images|sitemap)/
RewriteRule ^(.+)$ index.php [L,QSA]
</IfModule>
It's default .htaccess from CT.
1 Re: Redirect 302 for old links
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
Can you post your .htaccess with the mod_rewrite rules?
1 Re: Redirect 302 for old links
Sobiech
OP
77
From: -
From: -
1 Re: Redirect 302 for old links
Philipp
From: Vienna, Austria
Administrator
1340From: Vienna, Austria
I think the best would be a redirection script. Can you give me an example of your old links?
I have changed PHP-Nuke to Contentteller (2.1.14), but old links (from PHP-Nuke) are still in Google. If I could set up error code 404 for old links, then Google will remove the old links.
Can I set the error code 404 for the old links?