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-04-06 12:09:36
Point:500 Replies:8 POST_ID:828911USER_ID:11592
Topic:
PHP Scripting Language;Linux;Apache Web Server
Hello
I have some pages on my website that other sites are pointing to.
Can I create an htaccess file that points these non-existant pages to existing pages on the site.
If so please give me some examples on how to do this.
Or do the original pages need to exist?
Thanks!
Rowby
I have some pages on my website that other sites are pointing to.
Can I create an htaccess file that points these non-existant pages to existing pages on the site.
If so please give me some examples on how to do this.
Or do the original pages need to exist?
Thanks!
Rowby
Author: rowby replied at 2024-04-10 10:57:07
Hi
Thanks for your help. Got it working, taking in consideration all of your solutions.
Rowby
(And thanks, Ray too!)
Thanks for your help. Got it working, taking in consideration all of your solutions.
Rowby
(And thanks, Ray too!)
Expert: Ray Paseur replied at 2024-04-06 16:30:04
No points for this please.
301 is used to tell the user agent that the redirection is permanent -- never visit this URL again, even when asked. Instead go to the redirection URL.
Best to all, over and out, ~Ray
301 is used to tell the user agent that the redirection is permanent -- never visit this URL again, even when asked. Instead go to the redirection URL.
Best to all, over and out, ~Ray
Assisted Solution
Expert: bigeven2002 replied at 2024-04-06 12:42:23
100 points EXCELLENT
I think 301 is more often used for permanently redirecting an entire site rather than just one page. It still can be used, it's just optional. But if you are concerned about SEO, then using 301 may be ideal.
Expert: duncanb7 replied at 2024-04-06 12:34:58
You can find more "redirect .htacess" in internet such as
http://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F (the site is from hosting service company)
And it seems your question is not just redirect in .htaccess since you mentioned non-existant and existant file. If non-existant file, what we can do besides using link file ? Link file is also a file. Could you write more about it.
Duncan
http://kb.mediatemple.net/questions/242/How+do+I+redirect+my+site+using+a+.htaccess+file%3F (the site is from hosting service company)
And it seems your question is not just redirect in .htaccess since you mentioned non-existant and existant file. If non-existant file, what we can do besides using link file ? Link file is also a file. Could you write more about it.
Duncan
Author: rowby replied at 2024-04-06 12:31:14
Hi Duncan and bigeven2002 (will be splitting points)
So in this case, it's not a "301' redirect.....
I will also check your link, Duncan.
Thanks
Rowby
So in this case, it's not a "301' redirect.....
I will also check your link, Duncan.
Thanks
Rowby
Accepted Solution
Expert: bigeven2002 replied at 2024-04-06 12:28:00
200 points EXCELLENT
Sorry forgot the last part, the original pages do not need to exist. I tested with my server and entered a non-existent file in the address bar and it redirected without issue.
Assisted Solution
Expert: duncanb7 replied at 2024-04-06 12:22:22
200 points EXCELLENT
If the file is not existing, could you use symbolic link
The other sites point to the symbolic link(non-existing file) on your site and then go to other or final file location. The link file is just recording the path of the final file location
Please read these to do file link
http://www.cyberciti.biz/faq/unix-creating-symbolic-link-ln-command/
Could you explain more about the definition of "non-existant pages" ?
Duncan
The other sites point to the symbolic link(non-existing file) on your site and then go to other or final file location. The link file is just recording the path of the final file location
Please read these to do file link
http://www.cyberciti.biz/faq/unix-creating-symbolic-link-ln-command/
Could you explain more about the definition of "non-existant pages" ?
Duncan
Expert: bigeven2002 replied at 2024-04-06 12:17:24
Hello,
In the ,htaccess file, use a Redirect to direct users to the correct pages.
In the ,htaccess file, use a Redirect to direct users to the correct pages.
Or if both files are supposedly in the same parent directory:
Or if both are in the same subdirectory: