how to transfer dot in mod_rewrite?How to use mod_rewrite with Zend Framework?How to enable mod_rewrite for Apache 2.2Mod_rewrite and MySqlApache mod_rewrite issueredirect (mod_rewrite) specific page to new domainmod_rewrite does not redirect to my internal urlDifficult problems with mod_rewrite.htaccess mod_rewrite loopmod_rewrite results in err_too_many_redirectsHow to allow a dot (.) in htaccess?
Why was my Canon Speedlite 600EX triggering other flashes?
Is it wrong to omit object pronouns in these sentences?
Why did the metro bus stop at each railway crossing, despite no warning indicating a train was coming?
Why are BJTs common in output stages of power amplifiers?
Why do the lights go out when someone enters the dining room on this ship?
Can I say: "When was your train leaving?" if the train leaves in the future?
Is it safe to use two single-pole breakers for a 240 V circuit?
Do we have C++20 ranges library in GCC 9?
How do I identify the partitions of my hard drive in order to then shred them all?
Is Valonqar prophecy unfulfilled?
is it correct to say "When it started to rain, I was in the open air."
Developers demotivated due to working on same project for more than 2 years
Should generated documentation be stored in a Git repository?
White foam around tubeless tires
Extract the characters before last colon
Filter a data-frame and add a new column according to the given condition
Find the unknown area, x
Would life always name the light from their sun "white"
Is 12 minutes connection in Bristol Temple Meads long enough?
Why did the soldiers of the North disobey Jon?
What is this old US Air Force plane?
Was the dragon prowess intentionally downplayed in S08E04?
Help understanding this line - usage of くれる
How to not get blinded by an attack at dawn
how to transfer dot in mod_rewrite?
How to use mod_rewrite with Zend Framework?How to enable mod_rewrite for Apache 2.2Mod_rewrite and MySqlApache mod_rewrite issueredirect (mod_rewrite) specific page to new domainmod_rewrite does not redirect to my internal urlDifficult problems with mod_rewrite.htaccess mod_rewrite loopmod_rewrite results in err_too_many_redirectsHow to allow a dot (.) in htaccess?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I want to design a RewriteRule for the URL beta2.0/user/11
to beta2.0/user.php?11
and my .htaccess rule is
RewriteRule ^beta2.0/user/([0-9]*)$ /beta2.0/user.php?user_id=$1 [L]
however the RewriteRule not work, is there any problem in my Rule? And the problem is in the dot in the original url
apache mod-rewrite
add a comment |
I want to design a RewriteRule for the URL beta2.0/user/11
to beta2.0/user.php?11
and my .htaccess rule is
RewriteRule ^beta2.0/user/([0-9]*)$ /beta2.0/user.php?user_id=$1 [L]
however the RewriteRule not work, is there any problem in my Rule? And the problem is in the dot in the original url
apache mod-rewrite
Are you using this in an htaccess or in server.config file?
– starkeen
Mar 23 at 15:54
@starkeen in an htaccess and I'm sure the problem is about the . (dot)
– xiaolun
Mar 23 at 16:00
What error do you get when you go toexample. com/beta2.0/user/11
?
– starkeen
Mar 23 at 16:05
@starkeen there is no any error.. just not work
– xiaolun
Mar 24 at 3:07
add a comment |
I want to design a RewriteRule for the URL beta2.0/user/11
to beta2.0/user.php?11
and my .htaccess rule is
RewriteRule ^beta2.0/user/([0-9]*)$ /beta2.0/user.php?user_id=$1 [L]
however the RewriteRule not work, is there any problem in my Rule? And the problem is in the dot in the original url
apache mod-rewrite
I want to design a RewriteRule for the URL beta2.0/user/11
to beta2.0/user.php?11
and my .htaccess rule is
RewriteRule ^beta2.0/user/([0-9]*)$ /beta2.0/user.php?user_id=$1 [L]
however the RewriteRule not work, is there any problem in my Rule? And the problem is in the dot in the original url
apache mod-rewrite
apache mod-rewrite
edited Mar 23 at 15:53
starkeen
31.7k156281
31.7k156281
asked Mar 23 at 14:22
xiaolunxiaolun
84
84
Are you using this in an htaccess or in server.config file?
– starkeen
Mar 23 at 15:54
@starkeen in an htaccess and I'm sure the problem is about the . (dot)
– xiaolun
Mar 23 at 16:00
What error do you get when you go toexample. com/beta2.0/user/11
?
– starkeen
Mar 23 at 16:05
@starkeen there is no any error.. just not work
– xiaolun
Mar 24 at 3:07
add a comment |
Are you using this in an htaccess or in server.config file?
– starkeen
Mar 23 at 15:54
@starkeen in an htaccess and I'm sure the problem is about the . (dot)
– xiaolun
Mar 23 at 16:00
What error do you get when you go toexample. com/beta2.0/user/11
?
– starkeen
Mar 23 at 16:05
@starkeen there is no any error.. just not work
– xiaolun
Mar 24 at 3:07
Are you using this in an htaccess or in server.config file?
– starkeen
Mar 23 at 15:54
Are you using this in an htaccess or in server.config file?
– starkeen
Mar 23 at 15:54
@starkeen in an htaccess and I'm sure the problem is about the . (dot)
– xiaolun
Mar 23 at 16:00
@starkeen in an htaccess and I'm sure the problem is about the . (dot)
– xiaolun
Mar 23 at 16:00
What error do you get when you go to
example. com/beta2.0/user/11
?– starkeen
Mar 23 at 16:05
What error do you get when you go to
example. com/beta2.0/user/11
?– starkeen
Mar 23 at 16:05
@starkeen there is no any error.. just not work
– xiaolun
Mar 24 at 3:07
@starkeen there is no any error.. just not work
– xiaolun
Mar 24 at 3:07
add a comment |
1 Answer
1
active
oldest
votes
I assume your .htaccess is located in the same level as beta2.0 directory.
root
+---.htaccess
+--- beta2.0/
+---user.php
Place the following into .htaccess
RewriteEngine On
RewriteBase /
RewriteRule beta2.0/user/([0-9]+) "/beta2.0/user.php?user_id=$1"
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
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%2f55314678%2fhow-to-transfer-dot-in-mod-rewrite%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
I assume your .htaccess is located in the same level as beta2.0 directory.
root
+---.htaccess
+--- beta2.0/
+---user.php
Place the following into .htaccess
RewriteEngine On
RewriteBase /
RewriteRule beta2.0/user/([0-9]+) "/beta2.0/user.php?user_id=$1"
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
add a comment |
I assume your .htaccess is located in the same level as beta2.0 directory.
root
+---.htaccess
+--- beta2.0/
+---user.php
Place the following into .htaccess
RewriteEngine On
RewriteBase /
RewriteRule beta2.0/user/([0-9]+) "/beta2.0/user.php?user_id=$1"
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
add a comment |
I assume your .htaccess is located in the same level as beta2.0 directory.
root
+---.htaccess
+--- beta2.0/
+---user.php
Place the following into .htaccess
RewriteEngine On
RewriteBase /
RewriteRule beta2.0/user/([0-9]+) "/beta2.0/user.php?user_id=$1"
I assume your .htaccess is located in the same level as beta2.0 directory.
root
+---.htaccess
+--- beta2.0/
+---user.php
Place the following into .htaccess
RewriteEngine On
RewriteBase /
RewriteRule beta2.0/user/([0-9]+) "/beta2.0/user.php?user_id=$1"
edited Mar 23 at 19:10
answered Mar 23 at 16:38
olegsvolegsv
1,0551016
1,0551016
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
add a comment |
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
However it's still not working to my condition. -_-
– xiaolun
Mar 24 at 3:15
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
When I remove the dot (just 20 not 2.0) it's working correctly , however , as I add the dot to 2.0 it's not working...
– xiaolun
Mar 24 at 3:16
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%2f55314678%2fhow-to-transfer-dot-in-mod-rewrite%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
Are you using this in an htaccess or in server.config file?
– starkeen
Mar 23 at 15:54
@starkeen in an htaccess and I'm sure the problem is about the . (dot)
– xiaolun
Mar 23 at 16:00
What error do you get when you go to
example. com/beta2.0/user/11
?– starkeen
Mar 23 at 16:05
@starkeen there is no any error.. just not work
– xiaolun
Mar 24 at 3:07