skip to Main Content

My situation is as follows, and I’m sorry if this seems simple enough:

I understand SEO practices, and practicality of this, I just need assistance in the .htaccess rule.

2

Answers


  1. Chosen as BEST ANSWER

    i found my answer in the following: RewriteRule ^location/example/. /location/example/ [R=301,L]


  2. Is this something like what you’re looking for?

    RewriteRule ^location/([w-]+)/([w-]+)?/?$ /location/$1/ [NC,R=301,L]
    

    It’s hard to discern what you’re trying to do from your question. Does the “location” part of the URL change?

    Are you still showing the contents of oldpage at the new URL? Or are you wanting them to see the content at https://www.newsite.com/location/example/ instead?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search