php - htaccess redirects on apache -
i new .htaccess
.
i working on project in need display different url after every 15 days.
for e.g. "mysite.com/s1/folder1"
when enter url in address bar can see index.html
content resides inside "folder1"
.
now want display same "index.html"
same "folder1"
after 15 days url in address bar different e.g. "mysite.com/s1/any-other-name"
. possible. appreciated.
thanks, shailendra
try .htaccess in mysite.com documentroot folder
rewriteengine on rewritebase / rewritecond %{request_uri} !^/?(s1/folder1)/ rewriterule ^s1/(.*) s1/folder1/
if request begins s1/ redirect s1/folder1
Comments
Post a Comment