.htacess/mod rewrite to replace a string with a "/"

I need a RewriteRule for htaccess that replaces "prnt" (without the quotations) to a forward slash "/" (without the quotations).

I've been trying to do this for about a day and keep failing! Can anyone offer any help at all? Thanks
Who is Participating?
That will replace an URL-path with a slash for an internal rewrite, but may be you have a more specific pattern?

RewriteEngine on
RewriteRule ^(.*)prnt(.*) $1/$2 [L]

To force a redirect, you'll need the R flag

RewriteEngine on
RewriteRule ^(.*)prnt(.*) $1/$2 [R=301,L]
s1m0n123Author Commented:
Worked like a charm, thanks
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.