Ribernet Posted February 21, 2023 Share Posted February 21, 2023 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 More sharing options...
Wallgrind.nl Posted February 21, 2023 Share Posted February 21, 2023 Hello What do you want to achieve exactly with this? Your rewrite / rule should be added in setting -> SEO - URLs Link to comment Share on other sites More sharing options...
Ribernet Posted February 21, 2023 Author Share Posted February 21, 2023 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now