![]() |
"Redirection Loop"
Quote:
In the .htaccess: Code:
RewriteEngine onThank you very much! |
Quote:
Code:
http://domain.com-->http://domain.com/domain.com-->http://domain.com/domain.com/domain.com/...Code:
RewriteRule ^.*$ /cubecart/index.php [L] |
Hi,
Thanks for the response! That kind of works but it shows the content of /cubecart whilst staying on the main domain which breaks some of the images etc. How can I make it fully redirect the URL to /cubecart? Thanks again. |
can't get out a good Rewrite Rule at the moment :)
there is one workaround may work in your case. create a index.html in your document root: Code:
<html> |
Quote:
Thanks. |
how about this one? just one line:
Code:
RewriteRule ^/$ http://domain.com/cubecart/index.php [L] |
That just doesn't redirect :P
(Edit: and yes I have changed domain.com appropriately) |
just looked up apache document:
http://httpd.apache.org/docs/trunk/r...ite_intro.html "The main difference with per-server rewrites is that the path prefix of the directory containing the .htaccess file is stripped before matching in the RewriteRule" so there's difference for per-server and per-directory rewrite rule. (just know it :) ) the one line RewriteRule in my last post works for per-server rewrite. the per-directory version is Code:
RewriteRule ^$ http://domain.com/cubecart/index.php [L] |
Hi,
Thanks very much. It doesn't seem to work but just before you posted that I've decided to just use one of your previous ideas of the HTML redirect and that does the job fine so I'll leave it like that. If this problem arises again with a different account, I'll try your new method! Thanks very much. |
| All times are GMT -7. The time now is 02:37 AM. |