Jump to content

No way to make rewrite rule to work


EduDifadi

Recommended Posts

Hi,

I want to hide an URL by render its content but keeping other URL in browser bar.

I want to use a Rewrite Rule, but there is no way to make it work.

RewriteRule ^lavavajillas-60-cm-black-friday$ /content/30-black-friday-lavavajillas-60-cms [L]

I want to render this page:

https://mydomain.com/content/30-black-friday-lavavajillas-60-cms

but keeping this other URL in the browser bar:

https://mydomain.com/lavavajillas-60-cm-black-friday

No way to make it work. I just get a 404 error or even 500 error. If I use the flag [R] to redirect, it redirects correctly, but I dont achive what I want, as I want to keep the original URL in the bar.

¿Any idea?

Thanks

Edited by EduDifadi (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...