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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T14:27:49+00:00 2026-05-25T14:27:49+00:00

I have problem with this: RewriteEngine On RewriteRule ^tuote/([^/]+) tuote.php?data=$1 [L] it should change

  • 0

I have problem with this:

RewriteEngine On
RewriteRule ^tuote/([^/]+) tuote.php?data=$1 [L]

it should change all tuote/Something-Something to tuote.php?data=Something-Something in server side (not redirect) but seems not to work ($_GET['data'] gets no value).

And other question:
How could I make this 1-Something-title-nice-title to go php

$first_part = "1";
$secnd_part = "Something-title-nice-title";

tried explode, but it does not work in this case.

—-EDIT—-
Thank you for replies.

I changed htaccess file to:

RewriteEngine On
RewriteRule ^tuote/(.+) tuote.php?data=$1 [L]

but still $_GET['data'] value is empty. BTW, I have other htaccess in parent directory, maybe it would affect in the code?

The other htaccess file has content:

<IfModule mod_php.c>
php_flag display_errors 1
</IfModule>

AuthUserFile /var/www/somepath/.htpasswd
AuthGroupFile None
AuthName "Kirjaudu sisään"
AuthType Basic 

require valid-user

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ $1.php [L,QSA]

And about 2nd question, it started to work. Thank you!

  • 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-25T14:27:50+00:00Added an answer on May 25, 2026 at 2:27 pm
    1. Make sure you do not have directory “toute”. If you do, make sure you don’t have .htaccess in there which would take precedence.
    2. Create your rule match or sure. RewriteRule ^(.*)$ route.php?data=$1 [L] then see what’s inside $_GET[‘data’], that should give you a clue about why your rule is not oring.

    If it’s not working, AllowOverride is not working. Confirm by misspelling directive in .htaccess without any effect on apache.

    If you do get the string, try replace it with more strict rule.


    For your second question, you can do this

    list($id,$rest)=explode('-',$_GET['data'],2);
    

    Alternatively you can have your regexp select separate parts of your URL into different variables $2 $3 etc.

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

Sidebar

Related Questions

I have a url rewrite that looks like this: RewriteEngine On RewriteRule ^cancun/tours/$ location-tours-listings.php?locationName=Cancun
I have a .htaccess file - looks something like this: RewriteEngine On <FilesMatch ^.*\.php.*$>
I currently have this in .htaccess: Options +FollowSymlinks RewriteEngine on RewriteRule ^page/(.*)/(.*)$ /type1/internal.php?parentFolders=$1&pageTitleID=$2 [L]
I have problem with this code: file = tempfile.TemporaryFile(mode='wrb') file.write(base64.b64decode(data)) file.flush() os.fsync(file) # file.seek(0)
i have this problem: ms-access could not delete and i found a potential solution
I have this in my htaccess: Options +FollowSymLinks Options -Indexes RewriteEngine On RewriteRule ^annons/([a-zA-Z0-9_]+)$
Here's simplified .htaccess file: RewriteEngine On RewriteRule ^index$ index.php On my local lamp server
I have this problem. When you visit page where is PHP code: $_SESSION['test']++; echo
hello i'm using this .htaccess code to redirect urls. RewriteEngine on RewriteRule ^printer/([^/\.]+)/?$ printer.php?id=$1
I have problem compilin this code..can anyone tell whats wrong with the syntax CREATE

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.