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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T09:48:35+00:00 2026-05-29T09:48:35+00:00

I read a lot of Q&As here but failed to find a working solution.

  • 0

I read a lot of Q&As here but failed to find a working solution. I want to change the URL from a flat link syntax to a “regular” query.

How do I get from this:

http://localhost/start/__developer/pages/12016652

to this:

http://localhost/start/__developer/pages/suche.php?objektnr=12016652

by either means of htaccess or PHP? Disregard the curlies please. Thanks in advance for your support!

At this point I’m trying this:

Options        +FollowSymLinks -MultiViews
RewriteEngine  On
RewriteCond    %{REQUEST_FILENAME} !-d
RewriteCond    %{REQUEST_FILENAME} !-f
RewriteBase    /start/__developer/immo-shg-v4/pages/
RewriteRule    ^([0-9]+)$ suche.php?objektnr=$1 [QSA,L,NC]

Solution:

RewriteRule ^([0-9]+)$ suche.php?objektnr=$1 [L,NC,NE,R]

The [R] flag forces a redirect.
http://httpd.apache.org/docs/2.2/rewrite/flags.html

  • 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-29T09:48:36+00:00Added an answer on May 29, 2026 at 9:48 am

    Enable .htaccess through your httpd.conf it is not already enabled and put these lines in the .htaccess file in DOCUMENT_ROOT folder:

    Options +FollowSymLinks -MultiViews
    # Turn mod_rewrite on
    RewriteEngine On
    RewriteBase /
    
    # If the request is not for a valid file
    RewriteCond %{REQUEST_FILENAME} !-d
    # If the request is not for a valid directory
    RewriteCond %{REQUEST_FILENAME} !-f    
    #This is your redirect rule
    RewriteCond %{QUERY_STRING} !(?:^|&)objektnr=([^&]*)(?:&|$) [NC]
    RewriteRule ^(start/__developer/pages/)([^/]*) $1suche.php?objektnr=$2 [L,NC,QSA]
    

    As per your comments below have another RewriteRule like this:

    # If the request is not for a valid file
    RewriteCond %{REQUEST_FILENAME} !-d
    # If the request is not for a valid directory
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{QUERY_STRING} !(?:^|&)objektnr=([^&]*)(?:&|$) [NC]
    #This is your modified redirect rule
    RewriteRule ^(start/__developer/immo-shg-v4/pages/)([^/]*) $1suche.php?objektnr=$2 [L,NC,QSA]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I read a lot, also here, but couldn't find a simple way to do
I read a lot of questions, but they doesn't working in my case. My
Read a lot of differences between pointers & references . Here is a brief
Helo. I read a lot here and on other sites, but it seems that
I've read lot of articles saying, that Java EE is most popular enterprise solution
I got question about log4net is it working on IIS 7,5? I read lot
I read a lot of different opinions on it, but is WinRT an actual
I read a lot of Restful tutorials for PHP. (I don't want to go
I've read a lot of issues with trying to double-buffer a richedit control, but
I read through a lot of circular dependency topics but all of them seem

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.