skip to Main Content

htaccess 301 redirects by adding query parameter to the URL – Apache

I am trying to do 301 redirect from the below URL www.example.com/categories/Writing-Translation to www.example.com/categories/Writing-Translation-jobs However, it is always redirecting a page with the following url www.example.com/categories/categories/Writing-Translation-jobs?cid=Writing-Translation This is the htaccess code used for redirection 301 Redirect RewriteCond %{QUERY_STRING} ^cid=Writing-Translation$ [NC]…

VIEW QUESTION

Apache cannot run two virtualhosts with SSL at the same time

I have a httpd.conf file with the following content. <VirtualHost demo.mydomain.com:443> DocumentRoot "/var/www/html/demo" ServerName "demo" SSLEngine on SSLCertificateFile /etc/ssl/certs/demo.mydomain.com.crt SSLCertificateKeyFile /etc/ssl/certs/demo.mydomain.com.key SSLCACertificateFile /etc/ssl/certs/demo.mydomain.com.ca-bundle </VirtualHost> <VirtualHost pay.mydomain.com:443> DocumentRoot "/var/www/html/pay" ServerName "pay" SSLEngine on SSLCertificateFile /etc/ssl/certs/pay.mydomain.com.crt SSLCertificateKeyFile /etc/ssl/certs/pay.mydomain.com.key SSLCACertificateFile /etc/ssl/certs/pay.mydomain.com.ca-bundle </VirtualHost> When…

VIEW QUESTION
Back To Top
Search