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 8273589
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T07:31:39+00:00 2026-06-08T07:31:39+00:00

Possible Duplicate: .htacces to create friendly URLs. Help needed I would like to have

  • 0

Possible Duplicate:
.htacces to create friendly URLs. Help needed

I would like to have create a website, which loads up content from a MySQL database via PHP, while still being optimized for search engines.

I have considered a few approaches and was looking for some advice on which way would the best.

Users on my website would fill out a form and submit it, which gets saved in the SQL database. I would like to have it so that each new page could be accessed like this:

  • domain.com/plugins/whatever
  • domain.com/plugins/anotherpagename

Some approaches:
1.
A script generates a static HTML page in the plugins folder when the form is submitted. When the page is edited (there will be a edit button), the HTML page gets overwritten with the updated information.

  1. domain.com/plugins/whatever and domain.com/plugins/anotherpagename would all redirect to a PHP script.

However, I do not know how to create a .htaccess which would allow the PHP script to get the page name so that it can search the SQL database and bring up the correct information.

I am also unsure about how search engines would treat these pages?

  1. Maybe someone else can come up with an even better approach for this?

Thank you in advance for your help.

  • 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-06-08T07:31:40+00:00Added an answer on June 8, 2026 at 7:31 am

    You have a few options for how to do this. The simplest way that matches your requirements would be to add the following to your .htaccess file:

    RewriteEngine on
    RewriteRule ^/plugins/(.*)$ /yourscript.php?plugin=$1 [L]
    

    The above pass all requests to /plugins/anything to yourscript.php, from which you can access the plugin name using $_GET['plugin'].

    If “plugins” is simply an example, and you want to be able to use /anything/anything – then you may wish to look at passing all requests to your PHP script, and then parsing the requested URL.

    To do that, you’d use something like this in your .htaccess file:

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f 
    RewriteCond %{REQUEST_FILENAME} !-d 
    RewriteRule . /yourscript.php [L]
    

    To break that down, the above tells Apache to rewrite all requests where the file does not exist (i.e. images/css/js, etc.) to yourscript.php.

    From there, you can access the whole URL via $_SERVER['REQUEST_URI']. Which you can break down with string functions, regular expressions, and so on.

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

Sidebar

Related Questions

Possible Duplicate: C# driver development? I would like to know if I can do
Possible Duplicate: Difference Between Equals and == in which cases equals() works exactly like
Possible Duplicate: How would I identify if a website originates from a mobile browser?
Possible Duplicate: Please URL Rewrite in php I would like visitors to access the
Possible Duplicate: Python urllib2 Progress Hook I have a script which uploads a file
Possible Duplicate: using seo user friendly in php I have 3 PHP files: index1.php,
Possible Duplicate: Create vanity URLs in a LAMP configuration Once a user registers, I
Possible Duplicate: Query Strings & Mod ReWrite I have written a .htaccess file which
Possible Duplicate: regex for URL including query string I have a text or message.
Possible Duplicate: How to call a JavaScript function from PHP? I have a php

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.