arnonalex
Forum Replies Created
-
Forum: Plugins
In reply to: [404 Solution] Redirect me to the homeI’il explain the problem.
This is the URL from the old site that includes PHP variables.
https://www.domain.co.il/index.php?dir=site&page=content&cs=3009
What I was trying to do was redirected him to
https://WWW.DOMAIN.CO.IL/ABC .
It did not work and I finally used this code:
——————————————
function add_301($new_url,$cs) {
global $redirect_urls;
$redirect_urls[] = array(
‘new_url’ => $new_url,
‘cs’ => $cs,
);
}// add here all urls to redirect
add_301(‘/?p=400′,’3004’);
add_301(‘/?p=654′,’3062’);
add_301(‘/?p=327′,’3116’);
add_301(‘/?p=710′,’3080’);
add_301(‘/?p=706′,’3094’);
add_301(‘/?p=701′,’3096’);
add_301(‘/?p=718′,’3102’);
add_301(‘/?p=474′,’3001’);
add_301(‘/?p=737′,’3002’);
add_301(‘/?p=741′,’3038’);
add_301(‘/?p=503′,’3040’);
add_301(‘/?p=478′,’3000’);
add_301(‘/?p=785′,’3008’);
add_301(‘/?p=30′,’3005’);
add_301(‘/?p=400′,’3013’);function do_301_if_old_url() {
$site = “https://www.DOMAIN.co.il”;
$url = $_SERVER[‘REQUEST_URI’];
$url = str_replace($site, “”, $url);
if (isset($_GET[‘cs’])) {
$page_cs = $_GET[‘cs’];
global $redirect_urls;
foreach ($redirect_urls as $key => $redirect) {
if ($page_cs == $redirect[‘cs’]) {
header(‘Location: ‘ . $site . $redirect[‘new_url’]);
exit;
}
}
}
}
add_action(‘init’, ‘do_301_if_old_url’);Forum: Plugins
In reply to: [Transposh WordPress Translation] problem with Ajax in current version????? ???? ???? ?? ????.
?? ????.Forum: Plugins
In reply to: [404 Solution] Redirect me to the homeyes
i find my self at
https://www.domain.co.il
with no 404.Forum: Plugins
In reply to: [404 Solution] Redirect me to the homeno 404
Forum: Plugins
In reply to: [404 Solution] Redirect me to the homegoing to home
Forum: Plugins
In reply to: [404 Solution] Redirect me to the homeredirect
https://www.domain.co.il/index.php?dir=site&page=content&cs=3009
to
https://www.domain.co.il/abc
——————————————————————————–
To the best of my understanding it does not work because there are variables in the old urlForum: Plugins
In reply to: [404 Solution] Redirect me to the homethe problem – yes.
the issue in https://stackoverflow.com is jast to help u ??Forum: Plugins
In reply to: [404 Solution] Redirect me to the homeyes.
This is a known and problematic issue with url variables
https://stackoverflow.com/questions/13988815/htaccess-301-redirect-issue-with-url-variablesForum: Plugins
In reply to: [Swift Performance Lite] non-Latin charactersdid not help.
I have the problem on two different servers in two different sites.Forum: Plugins
In reply to: [404 Solution] Support for non-Latin letters does not workyyyyyyyyyyyyyyyyyyyyyyyyyyyes
works
thanks
thanksthanksthanksthanksthanksthanksthanksthanksthanksthanksthanksForum: Plugins
In reply to: [WP Fastest Cache] Clear cache files when a post or page is updatedworks fine.
thank uForum: Plugins
In reply to: [WP Fastest Cache] Clear cache files when a post or page is updated0.8.8.6
“update post” option” -yes- This reply was modified 6 years, 5 months ago by arnonalex.
Forum: Plugins
In reply to: [404 Solution] Support for non-Latin letters does not worksoory.
not working
in vido u cant see the url’s but u will understand..
Forum: Plugins
In reply to: [404 Solution] Support for non-Latin letters does not workThanks
Forum: Plugins
In reply to: [404 Solution] Support for non-Latin letters does not workI created Manually 301 for the three,to home page for the purpose of testing.
Only English-language works and refers to the home page.