felosi
06-23-2011, 01:29 PM
not sure how long its been like this or if cpanel changed, not sure if it ever worked. I thought it did. But recently tried to add some redirects from cpanel and simply didnt work in ,.htaccess, tried adding same rules to httpd.conf didnt work. here are the rules that didnt work.
Running current version of lsws
RewriteCond %{HTTP_HOST} ^hostingsplus\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.hostingsplus\.com$
RewriteRule ^vps\-hosting$ "http\:\/\/hostingsplus\.com\/your\-choice\-of\-hosting\/vps\-hosting\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^shared\-hosting$ "http\:\/\/hostingsplus\.com\/your\-choice\-of\-hosting\/shared\-hosting\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^ddos\-protected\-hosting$ "http\:\/\/hostingsplus\.com\/your\-choice\-of\-hosting\/ddos\-protected\-hosting\/" [R=301,L]
I had to change it to these rules manually to get it to work:
Redirect /shared-hosting http://hostingsplus.com/your-choice-of-hosting/shared-hosting/
Redirect /ddos-protected-hosting http://hostingsplus.com/your-choice-of-hosting/ddos-protected-hosting/
Redirect /vps-hosting http://hostingsplus.com/your-choice-of-hosting/vps-hosting/
Redirect /reseller-hosting-plans http://hostingsplus.com/your-choice-of-hosting/reseller-hosting-plans/
I have had to do this for a few clients so far.
Running current version of lsws
RewriteCond %{HTTP_HOST} ^hostingsplus\.com$ [OR]
RewriteCond %{HTTP_HOST} ^www\.hostingsplus\.com$
RewriteRule ^vps\-hosting$ "http\:\/\/hostingsplus\.com\/your\-choice\-of\-hosting\/vps\-hosting\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^shared\-hosting$ "http\:\/\/hostingsplus\.com\/your\-choice\-of\-hosting\/shared\-hosting\/" [R=301,L]
RewriteCond %{HTTP_HOST} ^.*$
RewriteRule ^ddos\-protected\-hosting$ "http\:\/\/hostingsplus\.com\/your\-choice\-of\-hosting\/ddos\-protected\-hosting\/" [R=301,L]
I had to change it to these rules manually to get it to work:
Redirect /shared-hosting http://hostingsplus.com/your-choice-of-hosting/shared-hosting/
Redirect /ddos-protected-hosting http://hostingsplus.com/your-choice-of-hosting/ddos-protected-hosting/
Redirect /vps-hosting http://hostingsplus.com/your-choice-of-hosting/vps-hosting/
Redirect /reseller-hosting-plans http://hostingsplus.com/your-choice-of-hosting/reseller-hosting-plans/
I have had to do this for a few clients so far.