Remove .html or .php extension from url
Autore: Jebran K.
Visite 1147,
Followers 2,
Condiviso 0
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
Yes you can.
Use an .htaccess file, i can explain here, but there are a lot of better explanations on the internet.
https://www.google.com/search?client=firefox-b-d&q=remove+html+extension+from+link
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]
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
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
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.