× Here you can get community support related to ReDJ.

Cannot get this to redirect

  • trogladyte
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 11 months ago #1890 by trogladyte
Cannot get this to redirect was created by trogladyte
Main site URL: www.digitalguarddawg.com
URL to be redirected: store.digitalguarddawg.com/home.php?cat=287

I have put in a 301 for the absolute URL to redirect to the main site URL. It sort of works. Rather than giving a 404 for the https URL I get a 404 for www.digitalguarddawg.com/home.php?cat=287. Kind of weird - I don't know how it could stitch the 2 parts together.

I tried adding a 2nd redirect from the new URL - www.digitalguarddawg.com/home.php?cat=287 - to www.digitalguarddawg.com, but that didn't work either.

Any ideas for me please?

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #1891 by admin
Replied by admin on topic Cannot get this to redirect
I'm not sure what you need. If you need to redirect
store.digitalguarddawg.com/home.php?cat=287
to
www.digitalguarddawg.com
and
store.digitalguarddawg.com
is a joomla site with redj installed, then you can just create the following rule:
From URL: ^/home\.php\?cat=287$
To URL: http://www.digitalguarddawg.com/
Request only: true (checked)

This rule will work for both
http://www.digitalguarddawg.com/home.php?cat=287
and
https://www.digitalguarddawg.com/home.php?cat=287
.

Kind regards,
Luigi
Last edit: 10 years 11 months ago by admin.

Please Log in or Create an account to join the conversation.

  • trogladyte
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 11 months ago #1892 by trogladyte
Replied by trogladyte on topic Cannot get this to redirect
Firstly, thanks, again, for such a speedy reply Luigi. In the days of non-service, it's always so refreshing to meet someone who realizes the world revolves much better when service is number 1!

Secondly, my apologies for the vagueness of my request.

Brilliant, your solution worked perfectly! I think I spot my errors in how I had it set up. I used the absolute URL store.digitalguarddawg.com/home.php?cat=287 in the From field which I think is fine, except I forgot to escape the "." and "?". PHP is NOT my strong point! I didn't think of using "^" in front either.

Thanks so much!!

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #1893 by admin
Replied by admin on topic Cannot get this to redirect
What to say... thank you :)

For any further request you are welcome...

Please Log in or Create an account to join the conversation.

Time to create page: 0.125 seconds