481219 Fix Htaccess Redirect Problem -- Immediate help needed 2
N/A
Dalam Kemajuan
Disiarkan sekitar 13 tahun yang lalu
N/A
Dibayar semasa penghantaran
Hi,
We have a membership site plugin that runs via Wordpress
called "Wishlist Member."
No one could access the protected content so I hired a programmer
here who came up with a redirect script that fixed the problem.
Here is what the programmer wrote:
Issue was the URL rewrites coming form wordpress, it may have been a conflict with the wishlist plugin but not 100% sure as I didnt write that original plugin and a lot of code to trace. Originally we did the rules in the .htaccess this fixed the file problem but not the dashboard issues. If we added rules for the dashboard they would destroy all the other rules for the rest of server so I implemented a jquery solutions. since the redirection from www to non www changed the url because of the other rules..
file /var/www/html/wp-content/themes/genesis/[login to view URL]
i added this script from line 15 to 23
<script language="javascript" type="text/javascript">
<!--
jQuery(document).ready(function(){
jQuery("a").each(function(){
jQuery(this).attr('href',jQuery(this).attr('href').replace('[login to view URL]','[login to view URL]'));
});
});
-->
</script>
============
The Problem
============
Our membership site content now loads slower than a 14.4 connection
back on Prodigy if you know what I'm sayin'.
1. The programmer from the membership software provided some
feedback that could possibly solve the original problem.
2. Either that OR we need a solution that causes the site
to load a LOT faster. Right now it takes about 30 seconds for
all the images to load. Normally, they'd load in about 3 seconds.
3. Obviously removing the redirect would fix them problem but THEN
no one can access their products. Or htaccess protection could be
removed but THEN our products are not protected.
We need:
1. Protected products
2. Fast loading page
Any ideas?