2 users online. Create an account or sign in to join them.Users

Search

Hi, I know Symphony CMS around 3 months ago but now I’m learning and testing for first time. This is my first message on this forum.

I’d like use /admin to access /symphony and I’ve tried .htaccess: Redirect /admin /symphony

But don’t have success, have an option for it?

Thanks for your time.

You shouldn’t need to add any rules.

Look for:

RewriteRule ^symphony/?$ index.php?mode=administration&%{QUERY_STRING} [NC,L]

and change ^symphony/ to ^admin/.

Not quite. All the backend navigation and edit links contain the “symphony” part. So you will be lost.

So if you don’t want to hack Symphony’s core (which can not be recommended), you will need another redirect. You could replace this:

RewriteRule ^symphony(/(.*/?))?$ index.php?symphony-page=$1&mode=administration&%{QUERY_STRING}   [NC,L]

by this:

RewriteRule ^symphony(/(.*/?))?$ admin$1    [NC,L,R]
RewriteRule ^admin(/(.*/?))?$ index.php?symphony-page=$1&mode=administration&%{QUERY_STRING}  [NC,L]

Please note that I have only done a quick test. No warranty here. :-)

[EDIT]: You should also be aware of an additional redirect happening for every backend page. This is, well, let’s say it’s not very nice. In real life it won’t be problematic.

[EDIT 2]: Simplified the first rewrite rule.

@allen, thanks. @michael-e hehehe..ok thanks I will try… but I think that only alias will be good… like /admin redirect once to /symphony

@michael-e thanks buy don’t works.. i try set on maintenance mode but don’t save more.. so.. maybe something like redirect/alias /admin to /symphony without chage the URL rules is better.

Bests,

You are right, it does not work completely. Anyway: it was just a basic idea to solve this without hacking the core. Unfortunately Symphony is not very flexible here. But those dependencies might be removed in future versions. (Getting rid of dependencies is one of Symphony’s strengths!)

In fact, this is coming in the next version. There is now an option in the configuration to define the backend URL.

In the meantime, if you just want to force a redirect for your convenience, you could create a file called admin/index.php with the following single line:

<?php header("Location: /symphony"); ?>

This isn’t an alias—the URL will be changed—but it will allow you to use “/admin” and end up at the back end.

@micheal-e don’t worry thanks =) @Allen I loved next versions hehehehe @kshultz Thanks I will try, it’s best option for now!

It’s only a “client request” =)

Bests,

I like to use this:

RewriteRule ^admin/?$ index.php?mode=administration&%{QUERY_STRING} [NC,L]
RewriteRule ^symphony/?$ index.php?mode=administration&%{QUERY_STRING} [NC,L]

Once inside the administration, the user will no longer worry about the url.

I say the user, not the developer.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details