Jump to content

.htaccess Problem


.Darkman

Recommended Posts

Hello Everybody,

 

I need some help with .htaccess

 

Currently i use this code :

RewriteRule ^category/(.*)$ category.php?name=$1 

 

I use that so that http://mysite.com/category/Photoshop is redirected to http://mysite.com/category.php?name=Photoshop

 

That goes smoothly.

 

But when i type http://mysite.com/category/Photoshop/ it gets redirected to http://mysite.com/category.php?name=Photoshop/

 

So i get an error. So how shall i redirect this one too to the http://mysite.com/category.php?name=Photoshop

 

 

Please Help

 

 

Thanks,

Link to comment
https://forums.phpfreaks.com/topic/46830-htaccess-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.