I thought I could do this with rewrite but I can't seem to find any information on it. What I want to do is this.
/path/to/my/program/index.php
I want to use a link for the use such as.
/forum/index.php
Is this posible?
I thought I could do this with rewrite but I can't seem to find any information on it. What I want to do is this.
/path/to/my/program/index.php
I want to use a link for the use such as.
/forum/index.php
Is this posible?
Try this in your .htaccess file:
RewriteEgnine on
RewriteRule ^forum/(.*) path/to/my/program/$1 [L]
That will rewrite any request that’s URL path starts with /forum/…
to the same but starting with /path/to/my/program/…
.
Yes, if you're using apache as webserver mod_rewrite might be feasible.
Depending on what you want to achieve it may also be that a simple Alias directive would do the trick.
Alias /forum /path/to/my/program