Is it compulsory that URL and folder name are same. If not I have a folder say temp and I want URL is like http://www.test.com/te*&mp
How would I do that?
Is it compulsory that URL and folder name are same. If not I have a folder say temp and I want URL is like http://www.test.com/te*&mp
How would I do that?
You can use Apache's mod_rewrite
to redirect requests made to te&mp
to the proper temp
folder. You won't be able to use *
as it isn't an allowed character for a file name (Windows, it is allowed on a POSIX system).
RewriteEngine On
RewriteRule ^te&mp/(.*) temp/$1 [L,QSA]
Also note that since &
is a reserved character, you'll need to URL encode it (te%26mp
).