htaccess help please

General discussions related to php

Moderators: macek, egami, gesf

fgatlin
New php-forum User
New php-forum User
Posts: 6
Joined: Wed Mar 07, 2012 9:49 pm

htaccess help please

Postby fgatlin » Fri Jun 22, 2012 2:39 pm

The .htaccess file was accidently deleted from the server. Service provider claims there are no backups.
Here is my problem. I need an htaccess file that will turn:
xxxxx.com/?action=view&cat=10391
into
xxxxx.com/Ship-Ready_Boxes/inv/10391
Any suggestions are greatly appreciated!!

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

Re: htaccess help please

Postby johnj » Wed Jun 27, 2012 8:37 am

Try this:

RewriteRule ^?action=view&cat=10391$ /?action=view&cat=10391/ [R]
RewriteRule ^?action=view&cat=10391/$ /Ship-Ready_Boxes/inv/10391


Return to “PHP General”

Who is online

Users browsing this forum: No registered users and 2 guests