Paulw01 Posted July 10, 2009 Share Posted July 10, 2009 Hi there,Ive sorted out prestashop finally!!!!! Server problems really.Had to install in a subfolder off the root and then only use 755 permissions instead of 777.One thing I would like to do is hide the sub folder name from displaying in the urlhttp://www.mydomain.co.uk/prestaCan i hide "presta" from showing up?Also could i use webdiversion, and if so would my url be blacklisted by search engines just for having a web diversion setup on it ???ThanksPaul Link to comment Share on other sites More sharing options...
mirifica Posted July 10, 2009 Share Posted July 10, 2009 hide subfolder: you need to add rewrite rules to your web server configurations (Apache, IIS, etc)blacklist: the nicer the diversion method, the better Link to comment Share on other sites More sharing options...
Ehinarr Posted July 10, 2009 Share Posted July 10, 2009 Try adding a permanent redirect in .htaccess root file: redirect 301 http://www.yourshopdomain.com/ http://www.yourshopdomain/folder/ Link to comment Share on other sites More sharing options...
mirifica Posted July 10, 2009 Share Posted July 10, 2009 The proble to solve is HIDING.Redirect does NOT hide anything.Rewrite DOES hide.Apache 1.3:httpd.apache.org/docs/1.3/mod/mod_rewrite.html Apache 2.2:httpd.apache.org/docs/2.2/mod/mod_rewrite.htmlOther HTTP servers: I do not know. Link to comment Share on other sites More sharing options...
mirifica Posted July 11, 2009 Share Posted July 11, 2009 in your .htaccess file, you need something like: RewriteEngine On RewriteCond %{REQUEST_URI} !^/hidethispath RewriteRule ^(.*)$ hidethispath/$1 [L] 1 Link to comment Share on other sites More sharing options...
JulianM Posted May 30, 2010 Share Posted May 30, 2010 Thanks Mirifica. It worked like a charm. in your .htaccess file, you need something like: Link to comment Share on other sites More sharing options...
meksi Posted July 8, 2010 Share Posted July 8, 2010 Thanks Mirifica. It worked like a charm.in your .htaccess file, you need something like: hi JulianM and Mirifica,I have the same problem. I have tried to make it but ı could'ntCould you explain me how to write this code please..My web site url is showing as: www.maysite.com/PrestaShopI want to display url as : www.mysite.complease write the code as same as I will put on the file.thanks for your help.have a nice day.. Link to comment Share on other sites More sharing options...
mirifica Posted July 8, 2010 Share Posted July 8, 2010 My web site url is showing as: www.maysite.com/PrestaShopI want to display url as : www.mysite.com It should look like this one RewriteEngine On RewriteCond %{REQUEST_URI} !^/PrestaShop RewriteRule ^(.*)$ PrestaShop/$1 [L] or some light variation thereof. Link to comment Share on other sites More sharing options...
meksi Posted July 8, 2010 Share Posted July 8, 2010 My web site url is showing as: www.maysite.com/PrestaShopI want to display url as : www.mysite.com It should look like this one RewriteEngine On RewriteCond %{REQUEST_URI} !^/PrestaShop RewriteRule ^(.*)$ PrestaShop/$1 [L] or some light variation thereof. is this file htacces.txt?if yes; the file includes the following code as same as in the page;# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpand I have added your suggested code and it become as follow;# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]# Catch 404 errorsErrorDocument 404 /404.phpRewriteEngine OnRewriteCond %{REQUEST_URI} !^/PrestaShopRewriteRule ^(.*)$ PrestaShop/$1 [L] [/code]and it did not work. it is still showing "PrestaShop" on the URL.I have put as follow too: # URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteCond %{REQUEST_URI} !^/PrestaShopRewriteRule ^(.*)$ PrestaShop/$1 [L] [/code]# Catch 404 errorsErrorDocument 404 /404.phpit did not work too. it is still showing "PrestaShop" on the URL.and I have tried as follow too;# URL rewriting module activationRewriteEngine on# URL rewriting rulesRewriteRule ^([a-zA-Z0-9-]*)/([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$2$4 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)\.html(.*)$ product.php?id_product=$1$3 [L,E]RewriteRule ^([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ category.php?id_category=$1 [QSA,L,E]RewriteRule ^content/([0-9]+)\-([a-zA-Z0-9-]*)(.*)$ cms.php?id_cms=$1 [QSA,L,E]RewriteRule ^([0-9]+)__([a-zA-Z0-9-]*)(.*)$ supplier.php?id_supplier=$1$3 [QSA,L,E]RewriteRule ^([0-9]+)_([a-zA-Z0-9-]*)(.*)$ manufacturer.php?id_manufacturer=$1$3 [QSA,L,E]RewriteCond %{REQUEST_URI} !^/PrestaShop RewriteRule ^(.*)$ PrestaShop/$1 [L] [/code]# Catch 404 errorsErrorDocument 404 /404.phpand it did not work again.so please is there any other way tu put the code in the page.thanks for everything.. Link to comment Share on other sites More sharing options...
meksi Posted July 14, 2010 Share Posted July 14, 2010 ok. I have found a different solutuon.1- I have changed directory name form folder manager2 I have put the same name on setup configiration settings on PrestaShop BO.now . everything is ok for me. Link to comment Share on other sites More sharing options...
Recommended Posts