The Cache: Technology Expert's Forum
 
*
Welcome, Guest. Please login or register. September 16, 2019, 05:53:35 PM

Login with username, password and session length


Pages: [1]
  Print  
Author Topic: htaccess redirect, help please..  (Read 3295 times)
grandpa
Rookie
**
Offline Offline

Posts: 20



View Profile
« on: April 28, 2007, 01:16:57 PM »

i dont know what board i should post it...

how to redirect
http://mydomain.com/?aaa=1&bbb=2
to
http://mydomain.com/dir/file.php?aaa=1&bbb=2
with htaccess?

thx for helping...
« Last Edit: April 28, 2007, 02:28:55 PM by grandpa » Logged
greenway
Rookie
**
Offline Offline

Posts: 12


View Profile
« Reply #1 on: April 28, 2007, 05:59:33 PM »

edit.

Its late and I am typing bollocks.

I will post after some sleep...
« Last Edit: April 28, 2007, 06:01:18 PM by greenway » Logged

No links in signatures please
Bompa
Administrator
Lifer
*****
Offline Offline

Posts: 564


Where does this show?


View Profile
« Reply #2 on: April 28, 2007, 10:15:40 PM »

i dont know what board i should post it...

how to redirect
mydomain.com/?aaa=1&bbb=2
to
mydomain.com/dir/file.php?aaa=1&bbb=2
with htaccess?

thx for helping...

So basically you want to save the parameters after the ? and then tack
them on to a new filename.

This might be close, can not test it atm, sorry.

RewriteRule .*\?(.*)$ dir/file.php?$1  [L]



Bompa
Logged

"The most beautiful and profound emotion we can experience is the sensation of the mystical..." - Albert Einstein
Pages: [1]
  Print  
 
Jump to:  

Perkiset's Place Home   Best of The Cache   phpMyIDE: MySQL Stored Procedures, Functions & Triggers
Politics @ Perkiset's   Pinkhat's Perspective   
cache
mart
coder
programmers
ajax
php
javascript
Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC
Seo4Smf v0.2 © Webmaster's Talks


Valid XHTML 1.0! Valid CSS!