Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6561967
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:39:11+00:00 2026-05-25T13:39:11+00:00

My website has several files and folders: mywebsite.com/index.php mywebsite.com/files/… Our users asked me if

  • 0

My website has several files and folders:

mywebsite.com/index.php
mywebsite.com/files/...

Our users asked me if it would be possible to create url alias like this:

mywebsite.com/thisalias -> mywebsite.com/index.php?var=thisalias

With other words: if the folder/file “thisalias” doesn’t exist, it should redirect. I have tried several code samples from StackOverflow but for some reason it didn’t work on my host. Any suggestions? I’m not really good with .htaccess coding.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:39:11+00:00Added an answer on May 25, 2026 at 1:39 pm

    I believe this is what you are looking for.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^/([a-zA-Z0-9]+)$ index.php?var=$1 [L]
    </IfModule>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In our client's website , favicon.ico file has several sizes from 8x8 to 32x32.
I have working website in PHP with a MySQL backend which has several tables
My website has several nested folders and sometimes long file names, so sometimes only
My company has several class libraries we use in multiple website projects (not web
I have a travel related website that has been online for several years (since
I manage a website for an organization that has a network where several hundred
My website has a sponsorship system that allows users to invite friends by email
Our website has one section which often changes to match the user. (examples are
A website I'm working on (using AS2 because it's oldschool) has a larger index
So I found an injected code on a website. A couple of php files

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.