WebSite X5Help Center

 
Jebran K.
Jebran K.
User

Remove .html or .php extension from url  en

Author: Jebran K.
Visited 1129, Followers 2, Shared 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

Posted on the
5 ANSWERS
Jebran K.
Jebran K.
User
Author

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]

Read more
Posted on the from 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

Read more
Posted on the from Paul M.
Jebran K.
Jebran K.
User
Author

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 

Read more
Posted on the from 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.

Read more
Posted on the from Paul M.