Ask Question Forum:
Model Library:2025-02-08 Updated:A.I. model is online for auto reply question page
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 rowby
at 2024-01-08 08:21:09
Point:500 Replies:5 POST_ID:828876USER_ID:11592
Topic:
Apache Web Server;;
Hello
I have a number of pages that start with the same words in the file name that I want to redirect to another domain.
Example:
http://www.olddomain.com/fruits-that-taste-good
http://www.olddomain.com/fruits-that-taste-bad
http://www.olddomain.com/fruits-that-taste-sweet
http://www.olddomain.com/fruits-that-taste-sour
I want to do a 301 redirect to the following
http://www.newdomain.com/fruits-that-taste-good
http://www.newomain.com/fruits-that-taste-bad
http://www.newdomain.com/fruits-that-taste-sweet
http://www.newdomain.com/fruits-that-taste-sour
Is there a way to do a rule that will take the wild card "fruits-that-taste-*" and direct all of those to the new domain -- without having to type each page
Something like this (of course I am not using the right syntax:
Redirect 301 http://www.olddomain.com/fruits-that-taste-* http://www.newdomain.com/*
Not sure if this is at all possible. Looking at my existing htaccess file I see that it is already using RewriteRule for other items. I read somewhere that RewriteRule is used for more elaborate directs. So it is available if it helps with this solution.
Thanks!
Rowby
I have a number of pages that start with the same words in the file name that I want to redirect to another domain.
Example:
http://www.olddomain.com/fruits-that-taste-good
http://www.olddomain.com/fruits-that-taste-bad
http://www.olddomain.com/fruits-that-taste-sweet
http://www.olddomain.com/fruits-that-taste-sour
I want to do a 301 redirect to the following
http://www.newdomain.com/fruits-that-taste-good
http://www.newomain.com/fruits-that-taste-bad
http://www.newdomain.com/fruits-that-taste-sweet
http://www.newdomain.com/fruits-that-taste-sour
Is there a way to do a rule that will take the wild card "fruits-that-taste-*" and direct all of those to the new domain -- without having to type each page
Something like this (of course I am not using the right syntax:
Redirect 301 http://www.olddomain.com/fruits-that-taste-* http://www.newdomain.com/*
Not sure if this is at all possible. Looking at my existing htaccess file I see that it is already using RewriteRule for other items. I read somewhere that RewriteRule is used for more elaborate directs. So it is available if it helps with this solution.
Thanks!
Rowby
Expert: test test replied at 2026-04-13 23:23:18
clean up browser data at this site on chrome....modern browser, has a lot cahce function
Expert: duncanb7 replied at 2024-01-27 03:19:01
thanks for your pt,
Have a nice day
Duncan
Have a nice day
Duncan
Author: rowby replied at 2024-01-26 07:01:30
Hi Duncan,
Thanks for the answer. Sorry for the delay in awarding points.
Rowby
Thanks for the answer. Sorry for the delay in awarding points.
Rowby
Author: rowby replied at 2024-01-08 09:56:37
Hi Duncak.
Thanks I will do the test and get back to you later today.
Rowby
Thanks I will do the test and get back to you later today.
Rowby
Accepted Solution
Expert: duncanb7 replied at 2024-01-08 08:43:52
500 points EXCELLENT
Could your try this from redirecting site of sitea to siteb on your .htaccess. file ?
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*sitea.com$ [NC]
RewriteRule ^(.*)$ http://siteb.com/$1 [R=301,L]
Duncan
RewriteEngine On
RewriteCond %{HTTP_HOST} ^.*sitea.com$ [NC]
RewriteRule ^(.*)$ http://siteb.com/$1 [R=301,L]
Duncan