People who code: we want your input. Take the Survey

Hot answers tagged

4

Many default SSL setup have settings to ignore .htaccess at all. So server use your .htaccess for http, but for security reason ignore default rules overwrite for https. Check your ssl config (try - /etc/httpd/conf.d/ssl.conf) what flag you have for AllowOverride? Possible you have None - in this case, the server will not even attempt to read .htaccess ...


2

There is an easier approach to this! In the template group, the one that contains the template that is used for the homepage of your site, I've added an xml template and named it "sitemap.xml". The actual template filename becomes sitemap.xml.xml, and added the template code to generate the sitemap.xml structure. This in combination with the standard ....


2

Try this :: 1.) Go to your SSL configuration file : /etc/httpd/conf.d/ssl.con 2.) Find your Virtual Host : <VirtualHost_default_:443> 3.) Write down : Path to your directory <Directory "/var/www/html/magento"> AllowOverride All </Directory> 4.) Restart your apache : service httpd restart


1

This is what we use to redirect a directory to a subdomain RewriteRule ^trade* http://trade.domain.com/ [R=301,L]


1

Try a RedirectMatch rule and see what you get: RedirectMatch 301 ^/store/?$ http://store.example.com


1

Have a look at Template Routes by Rob Sanchez. You should be able to setup a route with wildcards in a set order, then match those to each part of the segment that Super Search needs. Something like: $config['template_routes'] = array( 'search/:any/:any/:any/:num/:num' => 'search/results/search&cf_make=$1&cf_model=$2&cf_fuel=$3&...


1

Well... Append "?id=74&name=product-name" is what the line 6 of your code does: rewriterule ^(.*)/(.*)\.html$ product.php?id=$1&name=$2 [L]


1

few months ago I had similar work to do, I had tried many (many) solutions and rewrite hacks but I'm not a htaccess guru and I was almost ready to drop it, but then I remembered I can park domains on my package and once domain is directed to your site, you can do with it something. So, what I have in my htaccess rules for removing index.php and later I have ...


Only top voted, non community-wiki answers of a minimum length are eligible