...

View Full Version : Help Needed Please



DjDanHayden
08-21-2010, 02:23 PM
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 !

phpdeveloper
08-21-2010, 02:48 PM
You want to remove Forums in every URL

DjDanHayden
08-21-2010, 03:07 PM
You want to remove Forums in every URL

No i dont, I want to redirect the link /arenacp to /Forums/arenacp .

DjDanHayden
08-21-2010, 03:10 PM
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/

Fou-Lu
08-21-2010, 07:33 PM
This can be accomplished by mod_rewrite from the apache engine.


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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum