redirect question
redirect question
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
try to redirect : https://easy-bator.com/article/ (only folder)
to https://easy-bator.com/article/مقالات-جوجه-کشی.html
Re: redirect question
To which part of the software is this question related?
What are you trying to do?
What are you trying to do?
Re: redirect question
I think you can configure this in .htacesss
Re: redirect question
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?
Could you add a dummy index.html page in 'article' and use the Redirect in Page Properties > Miscellaneous?
Re: redirect question
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!
Above, Beyond, and @wwonderfull! <- Genuinely helps you with a powered up site that counts! Four Times Excellence!
Re: redirect question
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
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)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.
Re: redirect question
Re: redirect question
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
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
thanks to your taking time. i test that.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
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
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
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
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
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
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
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?
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?
-
-
- Posts: 1276
- Joined: Fri Aug 21, 2020 8:27 am
Re: redirect question
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: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?
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>
- BaconFries
-
- Posts: 5364
- Joined: Thu Aug 16, 2007 7:32 pm
Re: redirect question
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.
<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
Thank you WWONDERFULL and BACONFRIES
Both your solutions work excellently and I am very grateful for your help. It is very much appreciated.
Both your solutions work excellently and I am very grateful for your help. It is very much appreciated.