Jump to content

[Snippet] Cleaning up the Url


magicflyer

Recommended Posts

As I look throughout more and more virtual airlines, I notice the URL to contain a somewhat confusing string 'index.php' for some users.

For example, one can access a module by typing out virtualairline.com/index.php/schedules. This small script removes the index.php and allows you to directly access that part of the website by typing in virtualairline.com/schedules instead.


  1. Open up file manager, and be sure to checkmark the box 'Show hidden files' on the root selector that pops up in cpanel.
  2. Browse to your Virtual airline root folder(Where phpvms is installed)
  3. Open up the .htaccess file
  4. Copy/Paste the following code

RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule .* index.php/$0 [PT,L] 

  • Like 5
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...