/    Sign up×
Community /Pin to ProfileBookmark

Problem with redirect

Hi!
I have this problem. I launch this link:
[url]http://mysite/AA123a[/url]
My index.php file process this url and launch header(“Location: “. $file_path.”?id=”.$_REQUEST[‘id’]);
This is an html page and my browser link become become [url]http://mysite/temp/file.html[/url].
Instead what I want to do is to show the contents of the html file (file.html) but keep the same base url [url]http://mysite/AA123a[/url]

RewriteCond %{REQUEST_URI} ^(/.*?/.*?)/.*?$
RewriteCond %{QUERY_STRING} ^id=([A-Z]{2}[0-9]+[a-z]*
)$
RewriteRule ^(/.*?)/%1 [R=301,L]

this is not correct..
Help please..

to post a comment
PHP

0Be the first to comment 😎

×

Success!

Help @ojal__ spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.12,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...