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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T22:32:17+00:00 2026-06-17T22:32:17+00:00

I am writting Code in PHP, and i want to give my user options

  • 0

I am writting Code in PHP, and i want to give my user options to use SEO url or not to use SEO URL in admin panel.

he will be given .htaccess code to save in his current .htaccess page.

Now, by default there is no SEO URL.

Therefore I am coding in my php code like below >

<a href="<?php echo $domain."/".$cat_page.".php?id=".$cat_id."&title=".$title."&query=".$query; ?>/" ><?php echo $title; ?></a>

Now, When i have to allow the SEO Url,

How can i implement below link automatically, without editing any code and even in view source the SEO link is shown like below >

<a href="<?php echo $domain."/".$cat_page.".php/".$cat_id."/".$title."/".$query; ?>/" ><?php echo $title; ?></a>

Do i need to save the SEO code in database column. If yes how can i guess the SEO URL before the title and category is added.

IF on fly how can i implement the code in all pages whenever pages are requested.

Don’t tell me , you have to do with .htaccess I know that, but whenever i load my page, in view source non-seo urls are shown and .htaccess has no effect too.. I want to show seo url in view source too.. How should i write in my php code, Give me Idea, so that i can start writting code for that and show you.

Thanks.

This is Deep request to all moderators and staff to not close this thread saying duplicate or useless or FAQ, I am Damn Serious and i want to learn it tonight, It has been too much pain in my ass and i can’t find right solution till now.

I request all knowledgable LEETS , ELITES of PHP to help me in this.

Thanks once again

  • 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-17T22:32:18+00:00Added an answer on June 17, 2026 at 10:32 pm

    How can i implement below link automatically, without editing any code
    and even in view source the SEO link is shown like below >

    You can’t. You must rewrite all your old to code to new one.

    Much better solution is to write function-helper or use framework, or use Symfony2 Routing component apart of Symfony 2 framework.

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

Sidebar

Related Questions

I'm having some difficulty writing this code in php. I want to create a
When writing PHP code for any given project, do you find you can write
I'm writing a php code where the user enter various details and then submits
i want to make my server side in php. after writing the code in
I have placed a php code for getting current page URL and now I
I currently want to make my project accessible not only via back-end code (C#,
What im doing wrong, My code is in php and i want to save
I am writing PHP code where I want to pass the session id myself
I am writing a web application using PHP. I want to use the MVC
I'm writing code in PHP that requires including a config.php file depending on the

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.