.htaccess

Hi i have created an admin folder so i can put my admin.php in it and edited all the bit for it to work in there and its working fine. the reason a did this is so i can add a .htaccess to it for me do block some high risk hacking countries ip and to add an extra password for extra securaty and again its working just fine.



now the problem im having is when you add a new item and click on the preview link it comes up with a 404 Page Not Found. ([url]http://www.oggames.co.uk/index.php?sef_rewrite=1&dispatch=products.view&product_id=30631[/url])



Now im guessing it got to have to do with the RewriteRule in the .htaccess in the home dir.



Any ideas on how i can fix this?

Not quite sure, but a hint is that your url for preview is being generated as:



[url]http://www.oggames.co.uk/index.php?sef_rewrite=1&dispatch=products.view&product_id=30631[/url]



Removing ‘sef_rewrite=1&’ makes it work just fine.



Is the above URL the exact URL that’s being given on the product detail page?

I worked it out, all i had do do was opned the config.local and edit this:



$config[‘admin_index’] = ‘admin.php’;

$config[‘customer_index’] = ‘index.php’;



to:



$config[‘admin_index’] = ‘…/admin/index.php’;

$config[‘customer_index’] = ‘…/index.php’;



it works perfact.