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
https://forums.phpfreaks.com/topic/101150-solved-apache-url-rewrite-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.