Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder DjDanHayden's Avatar
    Join Date
    Nov 2008
    Location
    Ireland
    Posts
    55
    Thanks
    18
    Thanked 0 Times in 0 Posts

    Help Needed Please

    Hi everyone,

    I know this isnt PHP but i figured you guys would know how to do it.


    I have a control panel at this link www.sitedomain.com/Forums/arenacp. But i need it so staff only need to go to www.sitedomain.com/arenacp. But the arenacp has to stay in the forums dir.

    Any ideas ? WIll give thanks to anyone who can help !

  • #2
    Regular Coder
    Join Date
    Jul 2010
    Posts
    149
    Thanks
    0
    Thanked 5 Times in 5 Posts

    Remove Forums in URL

    You want to remove Forums in every URL

  • #3
    New Coder DjDanHayden's Avatar
    Join Date
    Nov 2008
    Location
    Ireland
    Posts
    55
    Thanks
    18
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by phpdeveloper View Post
    You want to remove Forums in every URL
    No i dont, I want to redirect the link /arenacp to /Forums/arenacp .

  • #4
    New Coder DjDanHayden's Avatar
    Join Date
    Nov 2008
    Location
    Ireland
    Posts
    55
    Thanks
    18
    Thanked 0 Times in 0 Posts
    i have them redirecting now, But is there a was i can edit the url to make it look like the cp url is /arenacp and not Forums/arenacp/

  • #5
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,987
    Thanks
    4
    Thanked 2,660 Times in 2,629 Posts
    This can be accomplished by mod_rewrite from the apache engine.
    Code:
    RewriteEngine on
    RewriteRule ^arenacp(\?.*)?$ Forums/arenacp$1 [L]
    That should do it, I'm no mod_rewrite master myself. That has to go in an .htaccess or in the httpd.conf with directory control. I'd add it to an .htaccess myself.

    If you're on IIS, I'm not sure if there is a way to do this. It can be done with just PHP by creating a file in the root called arena.php and simply redirecting it to the proper file. The difference is it would no longer be Forums/arenacp, it would be Forums/arenacp.php.

    Also, in the future please choose a more descriptive title for the issue at hand to make it easier for people searching to find what they are looking for.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •