WebSite X5Help Center

 
Jebran K.
Jebran K.
User

Remove .html or .php extension from url  en

Autore: Jebran K.
Visite 999, Followers 2, Condiviso 0  
Parole Chiave: any,website x5 pro 2019.3

dear sir plz step by step video Tutorials  Remove .html or .php extension from url  

s there a way of removing the .html extension on my website pages ?

www.foa-ltd.co.uk/contact.html to www.foa-ltd.co.uk/contact

Postato il
5 RISPOSTE
Jebran K.
Jebran K.
User
Autore

hello sir i am adding this code on my cpanel .htaccess  but not working plz help me thanks

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-d

RewriteCond %{REQUEST_FILENAME}\.html -f

RewriteRule ^(.*)$ $1.html [NC,L]

Leggi di più
Postato il da Jebran K.
Paul M.
Paul M.
Moderator

Hello Jebran,

Check with your host that the mod_rewrite module is set up correctly on your server.  Sometimes this is not the case by default.  Rewriting will not work without this module configured correctly.

Also ensure that you place your .htaccess file in the root folder of your WebSite X5 project.  If it is in any other folder you might get unpredictable results.

Finally, I have not checked the syntax of your code above.  Are you sure it is valid?  Where did you get it from?

Kind regards,

Paul

Search the WebSite X5 Help Center

Leggi di più
Postato il da Paul M.
Jebran K.
Jebran K.
User
Autore

sir my server mod_rewrite module is active this code google serch engine or many website avilable this code 

not solved my problem can you plz any one help us like a video tutorial plz i have maney video watching same setting but not solved my issue 

Leggi di più
Postato il da Jebran K.
Paul M.
Paul M.
Moderator

Sure, but be aware that this is not a WebSite X5 issue or anything to do with the program features, so Incomedia won't offer official support.

If you send me a message via my unofficial support site then we can resolve this for you:

Contact Paul M.

I'd need you to complete the contact form in full, with server/FTP details.

If you prefer you can ask your webhost, who should be able to achieve the same result.

Leggi di più
Postato il da Paul M.