× Here you can get community support related to ReDJ.

301 Redirect not working

  • Donna353
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 week ago - 11 years 1 week ago #1024 by Donna353
301 Redirect not working was created by Donna353
Hi,

I've installed with the documentation, cleared site and browser cache and still getting 404 errors for old URLs entered. For example,

Old URL
www.webmarketinghub.org/index.php?option=com_xmap&sitemap=1&Itemid=159

New URL entered into ReDJ
webmarketinghub.org/site-map

Also, old URLs use to redirect to the www version with the following code in the .htaccess file:
RewriteCond %{HTTP_HOST} ^webmarketinghub\.org [NC]
RewriteRule ^(.*)$ www.webmarketinghub.org/$1 [R=301,L]

This site is J2.5.9, Gantry 4.1.9. I noticed this morning that J2.5.10 just came out, would you recommend it?

Thank you kindly,
Donna :)
Last edit: 11 years 1 week ago by Donna353.

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

More
11 years 1 week ago #1028 by admin
Replied by admin on topic 301 Redirect not working
Hi,
create this rule:
From URL: ^/index\.php\?option=com_xmap&sitemap=1&Itemid=159$
To URL: http://{siteurl}/site-map
Request only: true (must be checked)

Let me know...

Kind regards,
Luigi

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

  • Donna353
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 1 week ago #1035 by Donna353
Replied by Donna353 on topic 301 Redirect not working
Hi Luigi,

Thank you for your suggestion. Unfortunately, I'm still getting 404 errors after I created the suggested ReDJ rule. Did you mean to add that to the .htaccess file?

Warm regards,
Donna :)

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

More
11 years 6 days ago - 11 years 6 days ago #1038 by admin
Replied by admin on topic 301 Redirect not working
Hi Donna,
this is a ReDJ rule. The only thing you should add in the .htaccess file (at the end) is:
ErrorDocument 404 /

But should not be needed for this redirect. Checking your old URL is redirected to:

http://%7Bwebmarketinghub.org%7D/site-map

So, there is an error with ReDJ rule. Check blanks, the destination should be (literally)
http://{siteurl}/site-map

Please, advise.
Luigi
Last edit: 11 years 6 days ago by admin.

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

  • Donna353
  • Topic Author
  • Offline
  • New Member
  • New Member
More
11 years 6 days ago #1039 by Donna353
Replied by Donna353 on topic 301 Redirect not working
Hi Luigi,

Got it working! Yay, thank you!

Your suggestion of changing the /index.php part of the URL to ^/index\.php\ was the ticket to getting this to work.

Much love,
Donna :)

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

More
11 years 6 days ago #1040 by admin
Replied by admin on topic 301 Redirect not working
Hi Donna,
you are welcome... :)

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

Time to create page: 0.140 seconds