Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
Thread: Help Needed Please
08-21-2010, 02:23 PM #1
Help Needed Please
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 !
08-21-2010, 02:48 PM #2
- Join Date
- Jul 2010
- Thanked 5 Times in 5 Posts
08-21-2010, 03:07 PM #3
08-21-2010, 03:10 PM #4
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/
08-21-2010, 07:33 PM #5
- Join Date
- Sep 2002
- Saskatoon, Saskatchewan
- Thanked 2,662 Times in 2,631 Posts
This can be accomplished by mod_rewrite from the apache engine.
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.Code:RewriteEngine on RewriteRule ^arenacp(\?.*)?$ Forums/arenacp$1 [L]
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.
Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)PHP Code:
header('HTTP/1.1 420 Enhance Your Calm');