1
hipoonios
Redirect my old module to another using htaccess
  • 2012/3/2 19:27

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


My old module is named:

/modules/tinycontent/index.php?id=1

I have now renamed the module by using search and replace in the code. And it works fine.

But there is a lot of sites that linking to my site.

So I want the old link redirect to my new renamed module: /modules/movies/index.php?id=1

I also want to keep the ID at the end of course. I have searched a lot. But have not found a solution. Maybe someone here can help?
I love Xoops!

2
hipoonios
Re: Redirect my old module to another using htaccess
  • 2012/3/2 20:24

  • hipoonios

  • Friend of XOOPS

  • Posts: 298

  • Since: 2005/9/24


Finally got it working after some more testing.

Here is the code if someone else needing it:

RewriteBase /dir/
RewriteRule ^modules/oldmodule(.*)$ http://www.yoursite.org/modules/newmodule$1 [L,R=301]
I love Xoops!

3
Anonymous
Re: Redirect my old module to another using htaccess
  • 2012/3/2 21:24

  • Anonymous

  • Posts: 0

  • Since:


Interesting you got this working. In my case I moved a newbb forum to a new domain, the old forum is offline now but the old site still online. What would be the syntax to redirect google hits to the new forum?

Login

Who's Online

194 user(s) are online (72 user(s) are browsing Support Forums)


Members: 0


Guests: 194


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits