redirect question

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

redirect question

Post 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
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: redirect question

Post by Pablo »

To which part of the software is this question related?
What are you trying to do?
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post 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
User avatar
Pablo
 
Posts: 21569
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: redirect question

Post by Pablo »

I think you can configure this in .htacesss
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post 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
WWBman
 
 
Posts: 916
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect question

Post 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?
User avatar
jerryco
 
 
Posts: 826
Joined: Fri Mar 27, 2009 2:42 pm
Location: Purmerend, Holland

Re: redirect question

Post 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.
// Love is the acceptance of nothing / Account age is no guarantee of efficiency ;-) ->

Above, Beyond, and @wwonderfull! <- Genuinely helps you with a powered up site that counts! Four Times Excellence!
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post 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?
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post by wb_user »

jerryco wrote: Thu Sep 30, 2021 10:11 am 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.
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)
WWBman
 
 
Posts: 916
Joined: Fri Jan 08, 2010 6:10 pm

Re: redirect question

Post 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.
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: redirect question

Post 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
Best Regards, Adrian

Rogarema.net
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post 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.
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: redirect question

Post 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
Best Regards, Adrian

Rogarema.net
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post 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.
Adrian
 
 
Posts: 84
Joined: Tue Jun 13, 2017 4:44 pm

Re: redirect question

Post 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
Best Regards, Adrian

Rogarema.net
wb_user
 
 
Posts: 1099
Joined: Sun Jul 05, 2015 7:03 am

Re: redirect question

Post 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!
jjq2r01h
 
 
Posts: 19
Joined: Sun Aug 23, 2020 4:31 pm

Re: redirect question

Post 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?
wwonderfull
 
 
Posts: 1255
Joined: Fri Aug 21, 2020 8:27 am

Re: redirect question

Post 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>
User avatar
BaconFries
 
 
Posts: 5324
Joined: Thu Aug 16, 2007 7:32 pm

Re: redirect question

Post 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.
jjq2r01h
 
 
Posts: 19
Joined: Sun Aug 23, 2020 4:31 pm

Re: redirect question

Post 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.
Post Reply