Damaged htaccess File With Slug In Link

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Damaged htaccess File With Slug In Link

Post by johnj » Wed Jul 17, 2013 8:32 pm

I have not tested this but what you want should be something like this

Code: Select all

RewriteCond %{THE_REQUEST} ^GET\ /12345/
RewriteRule ^12345/(.*) /12345/large-red-widget/$1 [L,R=301]

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Damaged htaccess File With Slug In Link

Post by johnj » Wed Jul 17, 2013 8:33 pm

if that does not work you can also try this

Code: Select all

RewriteRule ^12345/(.*) 12345/large-red-widget/$1

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 2 guests