Damaged htaccess File With Slug In Link

General discussions related to php

Moderators: egami, macek, gesf

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

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: 1803
Joined: Thu Mar 10, 2011 5:07 pm

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 6 guests