redirect in htaccess

Discussion Of All Legal Topics Is Fine Anything Goes. Be Respectful of Others. No Personal Information or Attacks.
All Traffic, Link, Banner, Push Notification and Advertising, Offers & Requests Here,.
Domains & Websites For Sale and Requests Here.
Keep One thread per person & No More Than 1 Weekly Bump.
Post Reply
User avatar
shoopa
Verified Member
Verified Member
Posts: 1852
Joined: February 26th, 2018, 7:32 pm

redirect in htaccess

#1

Post by shoopa » March 17th, 2022, 10:00 am

I'm a trying to redirect a link using htaccess and this code will not make it happen, what is wrong here.

Code: Select all

Redirect /index3.html /index4.html




User avatar
BrasSmonkey
Verified Member
Verified Member
Posts: 7893
Joined: February 28th, 2018, 6:31 pm
Title: Smell My Sack
Referrals: 1
Contact:

#2

Post by BrasSmonkey » March 17th, 2022, 10:23 am

shoopa wrote: ↑
March 17th, 2022, 10:00 am
I'm a trying to redirect a link using htaccess and this code will not make it happen, what is wrong here.

Code: Select all

Redirect /index3.html /index4.html
https://www.semrush.com/blog/301-redirect-htaccess/
THE LAKEN RILEY ACT IS NOW LAW!!! TRUMP 2025!!!
DACA HAS ENDED!!! email: brassballz-@-techie.com

User avatar
Terry
Verified Member
Verified Member
Posts: 774
Joined: March 5th, 2018, 6:23 pm

#3

Post by Terry » March 17th, 2022, 8:52 pm

This should do it

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine On
Redirect /index3.html /index4.html
</IfModule>




Big MOE
Verified Member
Verified Member
Posts: 822
Joined: September 24th, 2021, 7:46 am

#4

Post by Big MOE » March 18th, 2022, 1:05 pm

can you use

<IfModule mod_rewrite.c>
RewriteEngine On
add line 1 here
add line 2 here
add line 3 here

</IfModule>


or do you need
<IfModule mod_rewrite.c>
RewriteEngine On
line 1 here
</IfModule>



<IfModule mod_rewrite.c>
RewriteEngine On
line 2 here
</IfModule>


<IfModule mod_rewrite.c>
RewriteEngine On
line 3 here
</IfModule>
Getting rich takes making money, saving a nickel will not make you rich if you never make the buck

User avatar
TheButcher
Administrator
Administrator
Posts: 17533
Joined: February 2nd, 2018, 11:48 am
Title: I like weekends
Referrals: 1
Contact:

#5

Post by TheButcher » March 19th, 2022, 10:40 am

Big MOE wrote: ↑
March 18th, 2022, 1:05 pm
can you use

<IfModule mod_rewrite.c>
RewriteEngine On
add line 1 here
add line 2 here
add line 3 here

</IfModule>


or do you need
<IfModule mod_rewrite.c>
RewriteEngine On
line 1 here
</IfModule>



<IfModule mod_rewrite.c>
RewriteEngine On
line 2 here
</IfModule>


Nor how I do it, but can try it out see.

<IfModule mod_rewrite.c>
RewriteEngine On
line 3 here
</IfModule>

Not the best way to do it

rx_tom
Verified Member
Verified Member
Posts: 812
Joined: January 11th, 2019, 11:27 am
Referrals: 4

#6

Post by rx_tom » March 20th, 2022, 2:34 pm

See butcher's post above




User avatar
trafficseller
Verified Member
Verified Member
Posts: 1142
Joined: March 1st, 2018, 6:44 pm

#7

Post by trafficseller » March 21st, 2022, 12:09 pm

Always remember K.I.S.S
Always looking to make deals with world wide traffic ping me if inetrested

redirect in htaccess

Post Reply