Rewrite Rules, not stopping when rule is matched with [L] if rewritten file is not index.phppublic directory for .htaccessFrom mod_rewrite to isapi_rewritePHP/Apache: Rewrite rules with .htaccess.htaccess file rewriteHow to change htaccess to access symfony web directoryRewrite rule for subfolderHow to configure htaccess file for Cake 2.3.x on 1and1 shared hostinghow to skip index.php in URL rewriting?htaccess - Rewrite all files to index.php except sitemap.xmlNot working my .htaccess and config files
Is it a good security practice to force employees hide their employer to avoid being targeted?
How to ask if I can mow my neighbor's lawn
Idiom for 'person who gets violent when drunk"
Leveraging cash for buying car
Does an African-American baby born in Youngstown, Ohio have a higher infant mortality rate than a baby born in Iran?
How do credit card companies know what type of business I'm paying for?
How can religions without a hell discourage evil-doing?
How do I become a better writer when I hate reading?
What made the Ancient One do this in Endgame?
Is fission/fusion to iron the most efficient way to convert mass to energy?
Fastest path on a snakes and ladders board
Why is gun control associated with the socially liberal Democratic party?
Should I worry about having my credit pulled multiple times while car shopping?
Why not make one big CPU core?
Does PC weight have a mechanical effect?
How would Japanese people react to someone refusing to say “itadakimasu” for religious reasons?
How to avoid offending original culture when making conculture inspired from original
How to make a villain when your PCs are villains?
The title "Mord mit Aussicht" explained
Is there a term for someone whose preferred policies are a mix of Left and Right?
Are athletes' college degrees discounted by employers and graduate school admissions?
Co-worker is now managing my team. Does this mean that I'm being demoted?
How to know whether to write accidentals as sharps or flats?
Why is Skinner so awkward in Hot Fuzz?
Rewrite Rules, not stopping when rule is matched with [L] if rewritten file is not index.php
public directory for .htaccessFrom mod_rewrite to isapi_rewritePHP/Apache: Rewrite rules with .htaccess.htaccess file rewriteHow to change htaccess to access symfony web directoryRewrite rule for subfolderHow to configure htaccess file for Cake 2.3.x on 1and1 shared hostinghow to skip index.php in URL rewriting?htaccess - Rewrite all files to index.php except sitemap.xmlNot working my .htaccess and config files
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I have a quite complicated .htaccess file with many RewriteRules so far all have been working well apart from when I try to rewrite to a file that isn't index.php
I have tried adding [L] I'm running it loacally using xampp both index.php and deleteItem.php are valid files. It's also worth noting with my rules I cant point directly to the PHP file anymore.
Here is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /smartsharing/community/
RewriteCond %REQUEST_FILENAME !-d
RewriteCond %REQUEST_FILENAME !-f
RewriteRule ^.*?([^/]*)/members$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit/$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit/$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory/$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit/$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/edit$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/edit/$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/$ index.php?action=details&id=$1 [L,QSA]
</IfModule>
My URL is something like http://localhost/smartsharing/community/communityname/items/2/remove
I expect the rewritten URL to be http://localhost/smartsharing/community/deleteItem.php?id=2
but instead it seems to go to
http://localhost/smartsharing/community/index.php?action=details&id=2
Also when posting to http://localhost/smartsharing/community/doAction.php it instead is redirecting to http://localhost/smartsharing/community/index.php?action=details&id=doAction.php
apache .htaccess mod-rewrite
add a comment |
I have a quite complicated .htaccess file with many RewriteRules so far all have been working well apart from when I try to rewrite to a file that isn't index.php
I have tried adding [L] I'm running it loacally using xampp both index.php and deleteItem.php are valid files. It's also worth noting with my rules I cant point directly to the PHP file anymore.
Here is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /smartsharing/community/
RewriteCond %REQUEST_FILENAME !-d
RewriteCond %REQUEST_FILENAME !-f
RewriteRule ^.*?([^/]*)/members$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit/$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit/$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory/$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit/$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/edit$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/edit/$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/$ index.php?action=details&id=$1 [L,QSA]
</IfModule>
My URL is something like http://localhost/smartsharing/community/communityname/items/2/remove
I expect the rewritten URL to be http://localhost/smartsharing/community/deleteItem.php?id=2
but instead it seems to go to
http://localhost/smartsharing/community/index.php?action=details&id=2
Also when posting to http://localhost/smartsharing/community/doAction.php it instead is redirecting to http://localhost/smartsharing/community/index.php?action=details&id=doAction.php
apache .htaccess mod-rewrite
I personally hate using.htaccess
for complex things. I'm not very good at it. I redirect EVERY request to/handle_request.php
(internally), and I have a router which figures out what to do based upon the URL. Not that you should necessarily switch to that way of doing things. But It's what I do..htaccess
drives me crazy lol
– Reed
Mar 25 at 5:15
add a comment |
I have a quite complicated .htaccess file with many RewriteRules so far all have been working well apart from when I try to rewrite to a file that isn't index.php
I have tried adding [L] I'm running it loacally using xampp both index.php and deleteItem.php are valid files. It's also worth noting with my rules I cant point directly to the PHP file anymore.
Here is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /smartsharing/community/
RewriteCond %REQUEST_FILENAME !-d
RewriteCond %REQUEST_FILENAME !-f
RewriteRule ^.*?([^/]*)/members$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit/$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit/$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory/$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit/$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/edit$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/edit/$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/$ index.php?action=details&id=$1 [L,QSA]
</IfModule>
My URL is something like http://localhost/smartsharing/community/communityname/items/2/remove
I expect the rewritten URL to be http://localhost/smartsharing/community/deleteItem.php?id=2
but instead it seems to go to
http://localhost/smartsharing/community/index.php?action=details&id=2
Also when posting to http://localhost/smartsharing/community/doAction.php it instead is redirecting to http://localhost/smartsharing/community/index.php?action=details&id=doAction.php
apache .htaccess mod-rewrite
I have a quite complicated .htaccess file with many RewriteRules so far all have been working well apart from when I try to rewrite to a file that isn't index.php
I have tried adding [L] I'm running it loacally using xampp both index.php and deleteItem.php are valid files. It's also worth noting with my rules I cant point directly to the PHP file anymore.
Here is my .htaccess file
<IfModule mod_rewrite.c>
RewriteEngine On
#RewriteBase /smartsharing/community/
RewriteCond %REQUEST_FILENAME !-d
RewriteCond %REQUEST_FILENAME !-f
RewriteRule ^.*?([^/]*)/members$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/$ index.php?action=members&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/members/edit/$ index.php?action=editMembers&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/edit/$ index.php?action=editItems&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/purchasehistory/$ index.php?action=purchaseHistory&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/edit/$ index.php?action=editItem&id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
RewriteRule ^.*?([^/]*)/edit$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/edit/$ index.php?action=edit&id=$1 [L,QSA]
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
RewriteRule ^.*?([^/]*)/$ index.php?action=details&id=$1 [L,QSA]
</IfModule>
My URL is something like http://localhost/smartsharing/community/communityname/items/2/remove
I expect the rewritten URL to be http://localhost/smartsharing/community/deleteItem.php?id=2
but instead it seems to go to
http://localhost/smartsharing/community/index.php?action=details&id=2
Also when posting to http://localhost/smartsharing/community/doAction.php it instead is redirecting to http://localhost/smartsharing/community/index.php?action=details&id=doAction.php
apache .htaccess mod-rewrite
apache .htaccess mod-rewrite
asked Mar 25 at 2:44
Luke GreenwoodLuke Greenwood
204
204
I personally hate using.htaccess
for complex things. I'm not very good at it. I redirect EVERY request to/handle_request.php
(internally), and I have a router which figures out what to do based upon the URL. Not that you should necessarily switch to that way of doing things. But It's what I do..htaccess
drives me crazy lol
– Reed
Mar 25 at 5:15
add a comment |
I personally hate using.htaccess
for complex things. I'm not very good at it. I redirect EVERY request to/handle_request.php
(internally), and I have a router which figures out what to do based upon the URL. Not that you should necessarily switch to that way of doing things. But It's what I do..htaccess
drives me crazy lol
– Reed
Mar 25 at 5:15
I personally hate using
.htaccess
for complex things. I'm not very good at it. I redirect EVERY request to /handle_request.php
(internally), and I have a router which figures out what to do based upon the URL. Not that you should necessarily switch to that way of doing things. But It's what I do. .htaccess
drives me crazy lol– Reed
Mar 25 at 5:15
I personally hate using
.htaccess
for complex things. I'm not very good at it. I redirect EVERY request to /handle_request.php
(internally), and I have a router which figures out what to do based upon the URL. Not that you should necessarily switch to that way of doing things. But It's what I do. .htaccess
drives me crazy lol– Reed
Mar 25 at 5:15
add a comment |
1 Answer
1
active
oldest
votes
It's not the L
it's your rule RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
that caused the problem.
The catch-all pattern ^.*?([^/]+)$
in your rule matches all rewritten URIs and rewrites them to /index.php?action=details&id
.
What is happening is that when you go to :
/foobar/items/2/remove
the following rule is matched
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
Then , to load the destination url /deleteitem.php?I'd=124
your server again reads your htaccess file and the following rules is matched
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
Server continues reading htaccess file until no matching rules are found.
To solve this you can either use END
flag instead of the L
replace L
with END
in each rules . The END
flag ensures that the rule is run only ones in the current rewrite cycle or put a RewriteConds above the rule so it doesn't rewrite existing files or URIs .
RewriteCond %REQUEST_FILENAME !-f
1
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330632%2frewrite-rules-not-stopping-when-rule-is-matched-with-l-if-rewritten-file-is-n%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
It's not the L
it's your rule RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
that caused the problem.
The catch-all pattern ^.*?([^/]+)$
in your rule matches all rewritten URIs and rewrites them to /index.php?action=details&id
.
What is happening is that when you go to :
/foobar/items/2/remove
the following rule is matched
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
Then , to load the destination url /deleteitem.php?I'd=124
your server again reads your htaccess file and the following rules is matched
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
Server continues reading htaccess file until no matching rules are found.
To solve this you can either use END
flag instead of the L
replace L
with END
in each rules . The END
flag ensures that the rule is run only ones in the current rewrite cycle or put a RewriteConds above the rule so it doesn't rewrite existing files or URIs .
RewriteCond %REQUEST_FILENAME !-f
1
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
add a comment |
It's not the L
it's your rule RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
that caused the problem.
The catch-all pattern ^.*?([^/]+)$
in your rule matches all rewritten URIs and rewrites them to /index.php?action=details&id
.
What is happening is that when you go to :
/foobar/items/2/remove
the following rule is matched
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
Then , to load the destination url /deleteitem.php?I'd=124
your server again reads your htaccess file and the following rules is matched
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
Server continues reading htaccess file until no matching rules are found.
To solve this you can either use END
flag instead of the L
replace L
with END
in each rules . The END
flag ensures that the rule is run only ones in the current rewrite cycle or put a RewriteConds above the rule so it doesn't rewrite existing files or URIs .
RewriteCond %REQUEST_FILENAME !-f
1
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
add a comment |
It's not the L
it's your rule RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
that caused the problem.
The catch-all pattern ^.*?([^/]+)$
in your rule matches all rewritten URIs and rewrites them to /index.php?action=details&id
.
What is happening is that when you go to :
/foobar/items/2/remove
the following rule is matched
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
Then , to load the destination url /deleteitem.php?I'd=124
your server again reads your htaccess file and the following rules is matched
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
Server continues reading htaccess file until no matching rules are found.
To solve this you can either use END
flag instead of the L
replace L
with END
in each rules . The END
flag ensures that the rule is run only ones in the current rewrite cycle or put a RewriteConds above the rule so it doesn't rewrite existing files or URIs .
RewriteCond %REQUEST_FILENAME !-f
It's not the L
it's your rule RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
that caused the problem.
The catch-all pattern ^.*?([^/]+)$
in your rule matches all rewritten URIs and rewrites them to /index.php?action=details&id
.
What is happening is that when you go to :
/foobar/items/2/remove
the following rule is matched
RewriteRule ^.*?([^/]*)/items/([^/]*)/remove/$ deleteitem.php?id=$2 [L,QSA]
Then , to load the destination url /deleteitem.php?I'd=124
your server again reads your htaccess file and the following rules is matched
RewriteRule ^.*?([^/]+)$ index.php?action=details&id=$1 [L,QSA]
Server continues reading htaccess file until no matching rules are found.
To solve this you can either use END
flag instead of the L
replace L
with END
in each rules . The END
flag ensures that the rule is run only ones in the current rewrite cycle or put a RewriteConds above the rule so it doesn't rewrite existing files or URIs .
RewriteCond %REQUEST_FILENAME !-f
answered Mar 25 at 4:42
starkeenstarkeen
31.9k156382
31.9k156382
1
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
add a comment |
1
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
1
1
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
Thank you for providing an explanation into what was happening, your solution worked.
– Luke Greenwood
Mar 25 at 18:43
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55330632%2frewrite-rules-not-stopping-when-rule-is-matched-with-l-if-rewritten-file-is-n%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
I personally hate using
.htaccess
for complex things. I'm not very good at it. I redirect EVERY request to/handle_request.php
(internally), and I have a router which figures out what to do based upon the URL. Not that you should necessarily switch to that way of doing things. But It's what I do..htaccess
drives me crazy lol– Reed
Mar 25 at 5:15