Mr.Curiosity Posted June 8, 2011 Share Posted June 8, 2011 I am using Prestashop 1.4I went to Preferences>Seo&Urls;. and I edit my index.phpand it that field, I fill "rewritten url as "home".now my website home page link become like www.mywebsite.com/homeI just want it to be www.mywebsite.comI tried to empty the "rewritten url" field, but it doesnt save.what should I do? Link to comment Share on other sites More sharing options...
shokinro Posted June 8, 2011 Share Posted June 8, 2011 Have you tried to regenerate .htaccess? You can do this at Tools - Generators tab I tried to empty the “rewritten url” field, but it doesnt save. If that doesn't work. You can try to remove it from database directly via database tool. Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted June 8, 2011 Author Share Posted June 8, 2011 Have you tried to regenerate .htaccess? You can do this at Tools - Generators tabI tried to empty the “rewritten url” field, but it doesnt save. If that doesn't work. You can try to remove it from database directly via database tool. I have tried to regenerate .htaccess, but nothing has changed.what do I have to do with my database? Link to comment Share on other sites More sharing options...
shokinro Posted June 8, 2011 Share Posted June 8, 2011 I have tried to regenerate .htaccess, but nothing has changed.what do I have to do with my database? If you can not change it via you back office admin.You can change it from database directly. You can use database tool like PhpMyAdminlook into tableps_meta for the id_meta of index.php pagethen look into table ps_meta_lang to find the records related to indexthen manage to delete the url_rewrite field 1 Link to comment Share on other sites More sharing options...
Mr.Curiosity Posted June 9, 2011 Author Share Posted June 9, 2011 I have tried to regenerate .htaccess, but nothing has changed.what do I have to do with my database? If you can not change it via you back office admin.You can change it from database directly. You can use database tool like PhpMyAdminlook into tableps_meta for the id_meta of index.php pagethen look into table ps_meta_lang to find the records related to indexthen manage to delete the url_rewrite field Nah.. know it works, thanks for helping shokinro.. Link to comment Share on other sites More sharing options...
altino Posted February 9, 2013 Share Posted February 9, 2013 como conseguiu reescrever a url??? nao consigo quero tirar o index.php Link to comment Share on other sites More sharing options...
sahwira Posted March 20, 2013 Share Posted March 20, 2013 I am on version 1.5.3, how do I remove the "/index.php" following my url via the back office? Link to comment Share on other sites More sharing options...
sharmasumit811@ Posted December 14, 2013 Share Posted December 14, 2013 how can remove index.php from my prestashop url pls..... help Link to comment Share on other sites More sharing options...
abaij Posted November 16, 2014 Share Posted November 16, 2014 if you're using ps 1.6 then you have to go to Preference > SEO & URL. There you scroll down below until you find Set Up URLs tab. Set to Friendly URL and leave the other as it is. For user with Mac or Linux, you have to create an .htaccess file in the root folder of PS installation and set the permission to read & write (chmod 777). If you've done that, than save. You will get the .htaccess file with the code similar to this. # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> <IfModule mod_env.c> SetEnv HTTP_MOD_REWRITE On </IfModule> RewriteEngine on RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # Images RewriteRule ^([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$1$2$3.jpg [L] RewriteRule ^([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$1$2$3$4.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$1$2$3$4$5.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$1$2$3$4$5$6.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$1$2$3$4$5$6$7.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$1$2$3$4$5$6$7$8.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$1$2$3$4$5$6$7$8$9.jpg [L] RewriteRule ^([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])([0-9])(\-[_a-zA-Z0-9-]*)?(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/p/$1/$2/$3/$4/$5/$6/$7/$8/$1$2$3$4$5$6$7$8$9$10.jpg [L] RewriteRule ^c/([0-9]+)(\-[\.*_a-zA-Z0-9-]*)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2$3.jpg [L] RewriteRule ^c/([a-zA-Z_-]+)(-[0-9]+)?/.+\.jpg$ %{ENV:REWRITEBASE}img/c/$1$2.jpg [L] # AlphaImageLoader for IE and fancybox RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] # Dispatcher RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ %{ENV:REWRITEBASE}index.php [NC,L] </IfModule> AddType application/vnd.ms-fontobject .eot AddType font/ttf .ttf AddType font/otf .otf AddType application/x-font-woff .woff #If rewrite mod isn't enabled ErrorDocument 404 /index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Hope it helps Link to comment Share on other sites More sharing options...
goldberryetz Posted March 28, 2016 Share Posted March 28, 2016 thanks this works for me if you're using ps 1.6 then you have to go to Preference > SEO & URL. There you scroll down below until you find Set Up URLs tab. Set to Friendly URL and leave the other as it is. and for different languages as well Link to comment Share on other sites More sharing options...
Recommended Posts