Jump to content

[SOLVED] Apache url rewrite help


LamivNahdus

Recommended Posts

Hello,

          I need help in url redirection....

I want all the directories accessed in 'redir' subdomain be redirected to specific three php scripts.

 

Like this....

 

http://redir.domain.com/first                                to                      f.php?u=first

http://redir.domain.com/first/sec                          to                      s.php?u=first&p=sec

http://redir.domain.com/first/sec/third                  to                      t.php?u=first&p=sec&a=third

 

f.php, s.php and t.php will be in the same directory as the redir subdomain.

Now i need the .htaccess configuration file to be placed in redir subdomain directory.

 

Please help me and provide me the correct configuration that have to be placed in .htaccess at subdomain directory... I dont know how to do this.

 

Thank you in advance....

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.