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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T15:27:48+00:00 2026-05-20T15:27:48+00:00

I have a WordPress install on a domain, and I am setting up my

  • 0

I have a WordPress install on a domain, and I am setting up my rewrite rules now. The old site runs on asp and the new site php.

These are my rules, which I am inserting manually into htaccess

RewriteRule ^news_details.asp?id=([^/0-9]+)$ turkey-property-news/index.php?old_id=$1
RewriteRule ^property_([0-9]+).asp$ turkey-real-estate/index.php?old_id=$1
RewriteRule ^links1.asp?id=([0-9]+)$ index.php?post_type=sbdirectory&old_id=$1

The middle one works, the other 2 don’t. turkey-property-news and turkey-real-estate are actual directories with an index.php running a custom query, whereas the last rule uses the core wordpress functionality.

As mod_rewrite is not my mastermind chosen subject I was hoping to get some help here.

  • 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-20T15:27:49+00:00Added an answer on May 20, 2026 at 3:27 pm

    Query strings (the bit after the ?) are not part of a URL; you can filter on them using a rewriteCond statement. Something like this:

    rewriteCond %{QUERY_STRING} ^id=([^/0-9]+)$ 
    rewriterule ^news_details.asp$ turkey-property-news/index.php?old_id=%1 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a wordpress application thats currently the only application on the domain. Now
Trying to redirect all traffic from www.old-domain.co.uk and old-domain.co.uk to www.new-domain.co.uk on a Wordpress
I have WebMatrix version 1. I made a WordPress site and now it's time
I have cakephp installed in the root directory. site.com/ i want to install wordpress
Pulling my hair out over this one. I have one wordpress install at /2009
We have an existing WordPress install with a thriving user base. There are also
I have a WordPress site (2.6.2) in which I have set the Home page
I have a WordPress install in which registered users are allowed to post articles.
We have a site that runs on Symfony and that was developed by people
I am trying to automatically install a WordPress distribution in PHP with the following

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.