-
rewrite rule and forwarding
I have a site we will call it mysite.com
I made a beta page that looks like this mysite.com/beta
issue i have is i forward all requests to mysite.com to mysite.com/beta
But if someone types in mysite.com/admin or mysite.com/username
it gives a page does not exist.
How can i make it so all requests go to mysite.com/beta?
Ive tried a few and I also tried wildcard but it created a loop cause of my beta being in the same DIR
-
-
Create a rewrite condition that the request is not /beta.
Then create a rewrite rule to forward the user to /beta.
It may work best using /beta/index.htm (or another extension) directly, unless you have many pages inside /beta.
If you do have many pages inside beta, you can attach %REQUEST_URI% after /beta/, I believe.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks