Directory structure for related content 
Autor: Nektarios K.
Visitado 290,
Seguidores 1,
Compartilhado 0
On my website menu, I have the Services. That includes 4 pages.
Services
Page 1.php
Page 2.php
Page 3.php
Page 4.php
To anyone, you go, the URL shows as:
pamsmaritime.com/page1.php
pamsmaritime.com/page2.php
pamsmaritime.com/page3.php
pamsmaritime.com/page4.php
How can I Use directory structure for related content and show the URL as:
pamsmaritime/services/page1
pamsmaritime/services/page2
pamsmaritime/services/page3
pamsmaritime/services/page4 without the .php?
Please advice
Nek
Publicado em

This URL conversion and the code required is likely to be very complex.
----- Google AI -----
URLs with pseudo-directories, also called "speaking URLs" or "virtual URLs", are technically implemented primarily through URL rewriting on the web server. This translates a human-readable URL (e.g., /products/shoes/sneakers) into a dynamic URL with parameters (e.g., /index.php?cat=12&prod=99) without changing the address in the browser.
-----
This URL conversion is usually used in CMS, but whether this can be implemented with WebSite X5, perhaps the experts or Incomedia employees can answer that.
Hello Nektarios,
WebSite X5 does not include settings to display the URL this way, so it would be necessary to attempt achieving this through custom code.
I remain available.
If you can't find an expert who can create the rewrite code, simply write the category name at the beginning of the page name.
To do this, mark the page under "3 Sitemap" and click on "Properties" at the top, then put a check mark here and add the category name at the beginning, see
----- 1. Screenshot (German version) -----
----- 2. Changes to your example -----
pamsmaritime.com/services-page1.php
pamsmaritime.com/services-page2.php
pamsmaritime.com/services-page3.php
pamsmaritime.com/services-page4.php
----- 3. Google AI -----
2. Structure: Hyphen-separated (Flat Structure)
If no real folder structure is desired, the category should be separated by hyphens directly in the file name.
...
Advantage: Easy to implement, but less clear than the folder version.
-----
Autor
Dear Daniel,
Thank you for your information.
I will try it
Rgds