Jump to content
[MUST READ] Forum Rules ×

Moussa

Members
  • Posts

    9
  • Joined

  • Last visited

Posts posted by Moussa

  1. How to remove file extensions

    Hello all i made this post to show you how to remove file extensions likewww.example.com/index.php ] now i will show you how to remove .php in the end file to be [ www.example.com/index ] it will help your clients to open your website now follow this steps :

    1. open new Notepad
    2. save this code in new notepade
    RewriteEngine On
    
    # Unless directory, remove trailing slash
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^([^/]+)/$ https://yourwebsitelink.com/$1 [R=301,L]
    
    # Redirect external .php requests to extensionless url
    RewriteCond %{THE_REQUEST} ^(.+)\.php([#?][^\ ]*)?\ HTTP/
    RewriteRule ^(.+)\.php$ https://yourwebsitelink.com/$1 [R=301,L]
    
    # Resolve .php file for extensionless php urls
    RewriteRule ^([^/.]+)$ $1.php [L]
    1. Now change https://yourwebsitelink.com with your website link there is two to changeing
    2. Save the Notepade with name .htaccess and uploade with your website files and see what will happend

  2. 21 hours ago, mike said:

    Hello moussa,

    You can find the details to access the Cpanel of your website in the email that it was sent to you when signup. Once inside the Cpanel access the ftp server with the given details and there you will be able to change the default theme.

    Thanks very much <3

×
×
  • Create New...