Page 1 of 1
redirect question
Posted: Thu Sep 30, 2021 8:11 am
by wb_user
search but not found best way from 2 years ago
try to redirect :
https://easy-bator.com/article/ (only folder)
to
https://easy-bator.com/article/مقالات-جوجه-کشی.html
Re: redirect question
Posted: Thu Sep 30, 2021 8:58 am
by Pablo
To which part of the software is this question related?
What are you trying to do?
Re: redirect question
Posted: Thu Sep 30, 2021 9:07 am
by wb_user
Pablo wrote: Thu Sep 30, 2021 8:58 am
To which part of the software is this question related?
What are you trying to do?
that is not related to wb just redirect question
Re: redirect question
Posted: Thu Sep 30, 2021 9:14 am
by Pablo
I think you can configure this in .htacesss
Re: redirect question
Posted: Thu Sep 30, 2021 9:18 am
by wb_user
Pablo wrote: Thu Sep 30, 2021 9:14 am
I think you can configure this in .htacesss
test many codes, but that not config only folder redirect correctly
Re: redirect question
Posted: Thu Sep 30, 2021 10:10 am
by WWBman
Presumably you can't change مقالات-جوجه-کشی.html to index.html?
Could you add a dummy index.html page in 'article' and use the Redirect in Page Properties > Miscellaneous?
Re: redirect question
Posted: Thu Sep 30, 2021 10:11 am
by jerryco
Maybe you can place a redirect index.html file in the
https://easy-bator.com/article/ folder, and set it to redirect to the url you want.
Re: redirect question
Posted: Thu Sep 30, 2021 10:50 am
by wb_user
WWBman wrote: Thu Sep 30, 2021 10:10 am
Presumably you can't change مقالات-جوجه-کشی.html to index.html?
Could you add a dummy index.html page in 'article' and use the Redirect in Page Properties > Miscellaneous?
cant change مقالات-جوجه-کشی.html. it inex in google from 3 years ago
if your mean is I create index.html in article i can, but is that not negative effect on website seo?
Re: redirect question
Posted: Thu Sep 30, 2021 10:52 am
by wb_user
I think about this and I not sure it good because in that case website have two index html and for that maybe that not good idea(maybe)
Re: redirect question
Posted: Thu Sep 30, 2021 11:00 am
by WWBman
wb_user wrote: Thu Sep 30, 2021 10:50 am
WWBman wrote: Thu Sep 30, 2021 10:10 am
Presumably you can't change مقالات-جوجه-کشی.html to index.html?
Could you add a dummy index.html page in 'article' and use the Redirect in Page Properties > Miscellaneous?
cant change مقالات-جوجه-کشی.html. it inex in google from 3 years ago
if your mean is I create index.html in article i can, but is that not negative effect on website seo?
Sorry, I don't know enough about SEO to advise on this.
Re: redirect question
Posted: Sat Oct 02, 2021 11:05 am
by Adrian
Hello wb_user,
you can do this with a .htaccess rewrite rule:
create a .htaccess file with this content and put it in the root:
RewriteEngine On
Redirect 301 /article/
https://easy-bator.com/article/%D9%85%D ... DB%8C.html
It should work...
If not, write me again to look why!
Best regards, Adrian
Re: redirect question
Posted: Sun Oct 03, 2021 4:52 am
by wb_user
Adrian wrote: Sat Oct 02, 2021 11:05 am
Hello wb_user,
you can do this with a .htaccess rewrite rule:
create a .htaccess file with this content and put it in the root:
RewriteEngine On
Redirect 301 /article/
https://easy-bator.com/article/%D9%85%D ... DB%8C.html
It should work...
If not, write me again to look why!
Best regards, Adrian
thanks to your taking time. i test that.
when i config this code in htaccess i see problem, for example when you try to come:
https://easy-bator.com/article/page1.html
you will see redirect to:
https://easy-bator.com/article/%D9%85%D ... DB%8C.html
it redirect exactly to that link.
and when you try to go to
https://easy-bator.com/article/%D9%85%D ... DB%8C.html
you will see go to :
https://easy-bator.com/article/%D9%85%D ... DB%8C.html
again.
i cant hold the code in .htaccess, because all of pages in easy-bator.com/article redirect to bad link. Approximately 500 pages.
Re: redirect question
Posted: Sun Oct 03, 2021 7:07 am
by Adrian
Hello wb_user,
OK, I believe I understand now what you want to do.
If I understand correctly, you want that just yourdomain.com/article/ redirect to yourdomain.com/newurl.html,
but
not yourdomain.com/article/link1.html. Is this right?
If so, please edit your index.php or index.html in your /article/ folder and put the code below at the first position:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("Location:
https://easy-bator.com/article/%D9%85%D ... DB%8C.html");
header("Connection: close");
?>
This should work now!
If somebody open yourdomain.com/article/ it will be redirected to
https://easy-bator.com/article/%D9%85%D ... DB%8C.html
If somebody open yourdomain.com/article/link1.html it will become the /article/link1

and I supose that is what you want.
Best regards, Adrian
Re: redirect question
Posted: Sun Oct 03, 2021 7:24 am
by wb_user
Adrian wrote: Sun Oct 03, 2021 7:07 am
but
not yourdomain.com/article/link1.html. Is this right?
exactly.
I don't have any index.php or index.html in article folder. if I create that manually it not negative effect on website SEO? So that one index.html in website root and other index.html in article folder.
Re: redirect question
Posted: Mon Oct 18, 2021 3:03 pm
by Adrian
Hello wb_user, no, it has no negative effect because this is just a Php redirection.
The file in the folder article MUST be a index.php AND your server MUST search for a index.html or a index.php!
Regards, Adrian
Re: redirect question
Posted: Wed Oct 20, 2021 6:12 am
by wb_user
Adrian wrote: Mon Oct 18, 2021 3:03 pm
Hello wb_user, no, it has no negative effect because this is just a Php redirection.
The file in the folder article MUST be a index.php AND your server MUST search for a index.html or a index.php!
Regards, Adrian
thanks!
Re: redirect question
Posted: Tue Dec 26, 2023 7:45 am
by jjq2r01h
Hi
Can anybody guide me on how to easily create a website
https://a.b.c which then immediately redirects (without any user interventions) to another website
https://x.y.z?
Re: redirect question
Posted: Tue Dec 26, 2023 9:25 am
by wwonderfull
jjq2r01h wrote: Tue Dec 26, 2023 7:45 am
Hi
Can anybody guide me on how to easily create a website
https://a.b.c which then immediately redirects (without any user interventions) to another website
https://x.y.z?
To easily create a website `
https://a.b.c` that immediately redirects to another website `
https://x.y.z` without any user interventions, you can use HTML meta tags in the head section of your HTML code. Here's an example:
Code: Select all
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0;url=https://x.y.z">
<title>Redirecting...</title>
</head>
<body>
<h1>Redirecting to https://x.y.z...</h1>
</body>
</html>
Re: redirect question
Posted: Tue Dec 26, 2023 10:25 am
by BaconFries
There is a couple of ways to do this one is using meta tags* such as the following:
<meta http-equiv="refresh" content="0; url=add the required url to redirect to" /> by inserting in
Page Properties--> Meta Tags under User Defined. Where it reads "refresh" content= is set to 0 (equals seconds) this will redirect the user as soon as they enter the page if you wish a delay then.you can change the 0 to either 5 or increasements in seconds.
Re: redirect question
Posted: Tue Dec 26, 2023 11:22 am
by jjq2r01h
Thank you WWONDERFULL and BACONFRIES
Both your solutions work excellently and I am very grateful for your help. It is very much appreciated.