Jump to content

How to rewrite forum urls?

Featured Replies

Posted

I wish to rewrite my forum urls from: 

  • /forum/8-audi-forum/
  • to
  • /forum/audi/

is it possible...?

Edited by Gauravk

  • 3 weeks later...

yes

 

  • Author

Can you please tell me how? I am desperately looking for a solution for rewriting w/o numbers

.htaccess

RewriteRule ^/forum/audi/ /forum/8-audi-forum/ [R=301]

or acp=>system=>advanced configuration=>friendly url

Redirect permanent /forum/8-audi-forum/  https://carnity.com/forum/audi/

try

  • Author

Thanks for helping, now page is redirecting but showing page not found  Error code: 2T187/2

you have ip.page and forum in subdirectory

  • Author

Yes I have IP Pages and not sure about forum in subdirectory, this /forum is existing since I first installed IPB 2 years back before adding the IP Pages. It's the default option for forum.

delete htacces i think second solution in acp is better

 

create url rewrite

  • Author

Tried that as well already and not working.

  • Author

This is the by default option showing in ACP. Tried your suggestion and it didnt work.

Capture.JPG

try this

//301 Redirect Entire Directory
RedirectMatch 301 https://carnity.com/forum/8-audi-forum/(.*) https://carnity.com/forum/audi//$1
 

 

  • Author

Thanks Adlago for helping. I tried your suggestion and got Internal Server Error immediately.

1. Create new friendly url

- In the field of Friendly Url write audi

- In the field of Real Url write

app=forums&module=forums&controller=forums&id=8-audi-forum

Save

2. Now address

https://carnity.com/forum/audi/

will work.

3. Enter in the htaccess what @ayuki said

Redirect permanent /forum/8-audi-forum/  https://carnity.com/forum/audi/

 

Archived

This topic is now archived and is closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.