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

  • Home
  • SEARCH
  • 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 4021454
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T10:21:13+00:00 2026-05-20T10:21:13+00:00

a question that I hope does not sound crazy: On a multilingual site, imagine

  • 0

a question that I hope does not sound crazy: On a multilingual site, imagine several actual files with contents in them which are currently reachable under their file names:

website.org/en/tomato.php
website.org/nl/tomato.php
website.org/de/tomato.php

These are all one and the same php file, the folder infront of it tells the php to fetch what content. Now this name is short and handy for my file managemens, but the file names are all very unsexy for search engines. So, what are the ways to make these flat files having more exotic names like:

website.org/en/tomato.php-fist-The-Forgotten-Red-Punch
website.org/nl/tomaat.php-vuist-De-Vergeten-Rode-Vuist
website.org/de/tomate.php-faust-Die-Fergessen-Rote-Faust

Currently, my php nderstands the folder /en/ or /nl/ preceding the filenames and puts the correct language into the tomato.php file.

It is my dream to have a per language file name which then somehow tells php/apache to make it work and fetch invisibly underneath the naming engine the correct file.

I am really not ready for a cms framework, I’m happy I can manage my flat files myself. What would be a creative way to have a links management where sothat I can tags my links above the water more exoticly, while keeping the short file names below water for myself?

Solutions/ideas/suggestions/code are all very welcome and treated as possible answers and are Much appreciated.

  • 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-20T10:21:14+00:00Added an answer on May 20, 2026 at 10:21 am

    This is very common to handle with Apache and mod_rewrite … there are a number of ways to do this – the most common way is to rewrite all files to index.php

    In .htaccess:

    RewriteRule .* index.php [L]

    Then in your index.php check PATH_INFO and compare against your database for the associated real file.

    A few tutorials here:

    http://techie-buzz.com/how-to/create-seo-friendly-urls-using-mod-rewrite-and-php-part-1.html

    http://articles.sitepoint.com/article/search-engine-friendly-urls

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not too sure how to formulate my question and I hope that this is
My question concerns why one piece of code works and two that does not,
I hope this question does not come off as broad as it may seem
I face a very serious situation. By writing this question I hope that really
Not a web developer so i hope you will spare me if this question
This is actually my very first question on Stackoverflow. I hope its not the
I hope this is not a no-brainer question, but in Windows, is it possible
I have a few questions that I hope clarity and facts can be fed
A question that has pondered me for the last while. I am primarily a
Simple question that keeps bugging me. Should I HTML encode user input right away

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.