Um hard code to fix. waiting for expert
I have to 301 Redirect 15000+ pages. This makes my htaccess file size 4+ Meg. How can I change my mod rewrites to do some pattern checking or something to bring my file size down. I have urls with 2-3-4 parameters.
Replace ********* with a valid http url.Code:RewriteCond %{QUERY_STRING} ^page=2prod_id=4&category=20$ RewriteRule ^store/cart/index\.php$ **********/products/blue/widgets/2.html? [R=301,L]
Um hard code to fix. waiting for expert
I'm not an htaccess expert, but I know you can write rules to deal with more than one url. If the 15,000 urls use an identical pattern then one rule could handle them all.
I'd recommend looking for an htaccess or Apache forum and posting there, or you could try the official site - httpd<dot>apache<dot>org/docs/1.3/howto/htaccess<dot>html
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks