redirecting specific documents
4 posts
• Page 1 of 1
redirecting specific documents
Hi,
I'm trying to redirect urls for specific documents in the same directory (where old documents have been deleted/replaced) but this doesn't work? I'm a complete newb to ISAPI but have a whole batch of these to redirect;
RewriteEngine on
RewriteRule ^/Content/File/PDF/old_doc.pdf$ /Content/File/PDF/new-doc.pdf [R=301,L]
Help greatly appreciated.
I'm trying to redirect urls for specific documents in the same directory (where old documents have been deleted/replaced) but this doesn't work? I'm a complete newb to ISAPI but have a whole batch of these to redirect;
RewriteEngine on
RewriteRule ^/Content/File/PDF/old_doc.pdf$ /Content/File/PDF/new-doc.pdf [R=301,L]
Help greatly appreciated.
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: redirecting specific documents
Hello,
In case that's rule is in .htacces file, try using the following instead:
Regards
Andrew
In case that's rule is in .htacces file, try using the following instead:
- Code: Select all
RewriteEngine on
RewriteRule ^Content/File/PDF/old_doc\.pdf$ /Content/File/PDF/new-doc.pdf [NC,R=301,L]
Regards
Andrew
Re: redirecting specific documents
Hi, thanks for the reply Andrew.
I've tried that, but it doesn't work either... ?
Thanks
Simon
I've tried that, but it doesn't work either... ?
Thanks
Simon
- HeliconAndrew
-
- Posts: 1264
- Joined: 07 Mar 2012, 10:16
Re: redirecting specific documents
Than lets go to the httpd.conf and run the testing rule as described in FAQ.
Than you may enable logging and see error.log and rewrite.log and provide us with the log for the testing request.
Regards
Andrew
Than you may enable logging and see error.log and rewrite.log and provide us with the log for the testing request.
Regards
Andrew
4 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 11 guests