.htaccess help

Discussion in 'General' started by spikes, Feb 4, 2010.

  1. spikes

    spikes Member

    I have the following rewrite rule in the .htaccess file of one website running ispconfig3 that will create short url's

    RewriteRule ^(.*) index.php?do=/$1

    So it makes a longer url display shorter in browser like below:


    to this

    My question is it possible to use the rwrite rule to rename the modules folder to something else with a rewrite rule or how to do it?

    I have tried to rename but it did not work

    RewriteRule ^(.*) index.php?do=/$1
    RewriteRule ^modules /upload
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    I think that this is more related to the code in the index.php file to handle this correctly then the .htaccess rule.
  3. spikes

    spikes Member

    Maybe I used rename as the incorrect word. I want the folder name appear differently to the user that reads it in the browser. So I thought to use a rewrite rule.

Share This Page