Results 1 to 2 of 2

Thread: How to remove the URL extension?

  1. #1
    MioPrimoSitoProva is offline Utente AlterBlog
    Join Date
    Oct 2019
    Posts
    1

    Default How to remove the URL extension?

    Hello,

    Can someone tell me how to remove the extension from the URL please?

    Example: mysite.altervista.org/home.php -----> mysite.altervista.org/home

    I read that i have to modify the .htaccess file, but after several attempts i've not yet succeeded

    thank you

  2. #2
    alemoppo is offline AlterVista Staff
    Join Date
    Feb 2010
    Location
    IT
    Posts
    679

    Default

    See here.

    For example, to remove .php:

    Code:
    RewriteEngine On
    RewriteBase /
    RewriteRule ^([^\.]+)$ $1.php [NC,L]
    The itaian forum is here. You would have found what you were looking for (example).

    Bye!

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

SEO by vBSEO