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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T21:07:31+00:00 2026-06-06T21:07:31+00:00

I have links: /admin/index.php /admin/index.php?do=delete_user /forum/index.php?search=aaa&type=a /index.php /index.php?p=home and so on… How to preg_replace()

  • 0

I have links:

/admin/index.php
/admin/index.php?do=delete_user
/forum/index.php?search=aaa&type=a
/index.php
/index.php?p=home

and so on…

How to preg_replace() links that only index.php without GET’s will change (if have GET’s dont’replace).

Thanks, it’s working, but why not working this (?!&), (?!\&)? I want to keep unchange if after asd.aa/index.php?news=1 exist & (asd.aa/index.php?news=1&dont=change)

  • 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-06T21:07:32+00:00Added an answer on June 6, 2026 at 9:07 pm

    Use a negative lookahead: '/index\.php(?!\?)/' will match only if there is no ? after the index.php

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

Sidebar

Related Questions

I have a single point of entry on my website mysite.com/admin/index.php? View=List&Model=User All access
I have the following link on index page <td align=center><a href=../athena/admin/update.php?id=' . $data [keyword]
I have links like these that I want to change: mypage.com?page=missions&id=5 mypage.com?page=hello I tried
I have the following url. http://127.0.0.1/ci/index.php/admin/menus/edit/24 I want to get 24 from this to
I have a facebook application and a tab page which links http://localhost/a/index.php , I
I'm building a page admin in php and have a function that lets me
I have links on a PHP page where it lists all records from a
I have links on the side of my page such as home, news, contacts,
I have links on a ,page that I want to use to jump to
I currently have links w/ class=ajax that I want to retrieve the element with

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.