Ask Question Forum:
Model Library:2025-02-08:A.I. model is online auto reply
C
O
M
P
U
T
E
R
2
8
Show
#
ASK
RECENT
←
- Underline
- Bold
- Italic
- Indent
- Step
- Bullet
- Quote
- Cut
- Copy
- Paste
- Table
- Spelling
- Find & Replace
- Undo
- Redo
- Link
- Attach
- Clear
- Code
Below area will not be traslated by Google,you can input code or other languages
Hint:If find spelling error, You need to correct it,1 by 1 or ignore it (code area won't be checked).
X-position of the mouse cursor
Y-position of the mouse cursor
Y-position of the mouse cursor
Testcursor
caretPos
Attachment:===
Asked by kevp75
at 2024-08-05 08:36:21
Point:500 Replies:5 POST_ID:828700USER_ID:11595
Topic:
Apache Web Server;Components;Web Servers
I have a ExpressionEngine install, that is running 2 websites (yes, my licensing is all set).
Since I have added a domain to point to the second site, I need to update the old links: http://mysite.com/othersite to redirect to http://othersite.com
So, even though http://othersite.com brings up the other site, when I attempt to add:
RewriteEngine On
RewriteBase /
Redirect 301 /othersite http://othersite.com
to mysite.com root .htaccess file, it ends up causing a redirect loop for othersite.com
How can I fix this?
Since I have added a domain to point to the second site, I need to update the old links: http://mysite.com/othersite to redirect to http://othersite.com
So, even though http://othersite.com brings up the other site, when I attempt to add:
RewriteEngine On
RewriteBase /
Redirect 301 /othersite http://othersite.com
to mysite.com root .htaccess file, it ends up causing a redirect loop for othersite.com
How can I fix this?
Expert: duncanb7 replied at 2024-08-08 10:08:53
Thanks, you are welcomed
Author: kevp75 replied at 2024-08-08 09:49:59
Thank you for this
Assisted Solution
Expert: duncanb7 replied at 2024-08-08 09:30:12
100 points EXCELLENT
It just redirect http://mysite.com/othersite to http://othersite.com
missing ".com" in http://othersite.com
RewriteRule ^(.*)$ http://othersite.com/$1 [R=301,L]
talk you later
Duncan
missing ".com" in http://othersite.com
RewriteRule ^(.*)$ http://othersite.com/$1 [R=301,L]
talk you later
Duncan
Author: kevp75 replied at 2024-08-08 09:25:14
Can you explain to me what this does? Then I will accept.
Yes, I have tested it and it does work.
Yes, I have tested it and it does work.
Accepted Solution
Expert: duncanb7 replied at 2024-08-08 08:54:09
400 points EXCELLENT
You just want to redirect right ?
from http://mysite.com/othersite to http://othersite
put three sentence on your.htaccess and that is all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*mysite.com/othersite$ [NC]
RewriteRule ^(.*)$ http://othersite/$1 [R=301,L]
from http://mysite.com/othersite to http://othersite
put three sentence on your.htaccess and that is all
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*mysite.com/othersite$ [NC]
RewriteRule ^(.*)$ http://othersite/$1 [R=301,L]