justasking
justasking

Reputation: 23

301 redirect a whole directory to a specific thread/link (same domain)

I would like to add a 301 redirect to a whole directory and redirect every single link of this directory to a specific thread/post on the same domain. I am using an apache server so i suppose i will have to edit the .htaccess

I want all the threads of this directory:

http://example.com/f73

To be redirected there:

http://example.com/f75/newthread-1990/#post333

I have read some different solutions and got confused :(

Upvotes: 2

Views: 125

Answers (1)

anubhava
anubhava

Reputation: 786081

You can use this rule in your root .htaccess:

RewriteEngine On

RewriteRule ^f73 /f75/newthread-1990/#post333 [L,NC,NE,R=301]

Upvotes: 0

Related Questions