After playing with the .htaccess i've hit a brick wall. My site will load from just the domain name but won't load any css or js.
here's my .htaccess:
Options +FollowSymLinks
RewriteEngine On
RewriteBase /magento/
RewriteRule . index.php [L]
Magento is located in Httpdocs/magento/
This is my first time editing a .htaccess file
I have base URLS set to http://mystore.com/magento/
I have seo rewrites enabled
-
After running firebug i can see that it's calling all the js & css from the root directory.Max Coates– Max Coates2014年01月23日 18:05:33 +00:00Commented Jan 23, 2014 at 18:05
-
why are you not using Magento's default .htaccess file?FlorinelChis– FlorinelChis2014年01月23日 18:10:05 +00:00Commented Jan 23, 2014 at 18:10
-
I will try it now, am i right in believing this is the default .htaccess : pastebin.com/gxJpp8Ev? Here is my site if it's any help www.petwholesale.co.ukMax Coates– Max Coates2014年01月23日 18:12:23 +00:00Commented Jan 23, 2014 at 18:12
1 Answer 1
Use Magento's .htaccess file
and uncomment (remove #)
#RewriteBase /magento/
answered Jan 23, 2014 at 18:11
FlorinelChis
2,9302 gold badges27 silver badges41 bronze badges
-
Thanks for the reply! Do you know where i can find this?Max Coates– Max Coates2014年01月23日 18:15:02 +00:00Commented Jan 23, 2014 at 18:15
-
Click on .htaccess on my reply above :)FlorinelChis– FlorinelChis2014年01月23日 18:23:24 +00:00Commented Jan 23, 2014 at 18:23
-
Derp! Didn't see the link! Thanks for that very handy :) I'll put it in the root now and see if it fixes the issue! Thanks againMax Coates– Max Coates2014年01月23日 18:32:08 +00:00Commented Jan 23, 2014 at 18:32
-
Okay i've tried that and now im getting a redirect error.. it doesn't like good... :<Max Coates– Max Coates2014年01月23日 19:01:23 +00:00Commented Jan 23, 2014 at 19:01
-
more details about "redirect error"?FlorinelChis– FlorinelChis2014年01月23日 21:12:10 +00:00Commented Jan 23, 2014 at 21:12
default