Jump to content

Custom path in prestashop domain


Ribernet

Recommended Posts

Hello

I am trying to create the URLs:
www.domainpresta.com/subfolder/page1
www.domainpresta.com/subfolder/page2

The chosen method is:
1) I create "/subfolder" via FTP
2) Inside "subfolder" I create page1.php and page2.php

The result is that I can access:
www.domainpresta.com/subfolder/page1.php
But I can't access to:
www.domainpresta.com/subfolder/page1
(page not found)


3) In "/subfolder" I put a .htaccess file to be able to access the url without ".php".
 

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^\.]+)$ $1.php [NC,L]

#maybe??
#RewriteRule ^page1$ page1.php [L]
#RewriteRule ^page2$ page2.php [L]
</IfModule>

 

How can I fix this?
Thanks

 

Link to comment
Share on other sites

In order to add a new page In SEO-URLs, I must choose one of the default pages (pdf-invoice, manufacturer...), but I don't want use any of these.

It is possible to add a page in SEO-URLs without choosing a template from the list? (adding controllers is too difficult to me at the moment)

Another option would be the CMS manager, but it adds "/content" to the URL

I want to have a clean url like "www.domainpreesta.com/subfolder/page1 (and page2, page3, etc.)

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...