.htaccess - asp htaccess 301 redirect -
I'm trying to redirect 3 pages but for some reason, this does not seem to work. The site is built with ASP
& lt; IfModule mod_rewrite.c & gt; # Make sure the inactive directory listing + compliant SIM links -indaksjh with Riraitingin at rewrite PDF requests / pdf / IE not to have been the root pre-generation - prepaid / pdf / - Negative look-ahead Use - If the file does not exist, then you get 500 obstacles though it is sad. RewriteCond% {REQUEST_URI} ^ / (?! PDF /) (. *) \. (PDF) $ RewriteCond% {DOCUMENT_ROOT} / pdf / $ 1 -f RewriteRule ^ (. *) $ / Pdf / $ 1 [L] # are not in URI / images / pdf / CSS or / js handler Process this% {REQUEST_URI} to RewriteCond ^^ (/ images / | / PDF / | / CSS / | / js /)! RewriteCond% {REQUEST_FILENAME}! handler.php RewriteRule ^ (. *) $ handler.php / $ 1 [L] # URI in the directory, but the file handler as well RewriteCond% {REQUEST_URI} ^ through does not exist to run it (/ images / | / PDF / | / CSS / | !. / js /) RewriteCond% {REQUEST_FILENAME} -f RewriteRule ^ (*) $ handler.php / $ 1 [L] # permanent redirect URL redirect 301 / Server_Rack_Cabinet_RS_42U. asp http: //www.rackmountsolutions.net/cruxial-core-1000-series-server-rack.asp Redirect 301 /Sound_Dampening_Proof_Server_Rack.asp http://www.rackmountsolutions.net/AcoustiQuiet_Soundproof_Server_Rack.asp Redirect 301 / Relay_Rack_4_post.asp http: //www.rackmountol Utions.net/4_Post_Server_Rack.asp & lt; / If module & gt;
# Permanent URL redirect part does not seem to work. I have the entire code in the .htaccess file above.
After the text "itemprop =" text ">
Since this site is running on one IIS server, a web.config < / Strong> The file was exaggerating the .htaccess file in any way to see how I did it. The web.config file was in the root folder of my site.
& lt; Configuration & gt; & Lt; System.webServer & gt; & Lt; Rewrite & gt; & Lt; Rules & gt; & Lt; Rule name = "and-leader-reader1" pattern syntax = "ECMAScript" stop processing = "true" & gt; & Lt; Mail url = "^ Server_Rack_Cabinet_RS_42U.asp" /> & Lt; Conditions & gt; & Lt; Input = "{HTTP_HOST}" pattern = "^ www \ .rackmountsolutions \ .net $" /> Add & lt; / Status & gt; & Lt; Action Type = "Redirect" url = "http://www.rackmountsolutions.net/cruxial-core-1000-series-server-rack.asp" /> & Lt; / Rules & gt; & Lt; Rule Name = "Env-leader-redirect2" Pattern Syntax = "ECMAScript" Stop Processing = "True" & gt; & Lt; Mail url = "^ Server_Rack_Cabinet_RS_42U.asp" /> & Lt; Conditions & gt; & Lt; Input = "{HTTP_HOST}" pattern = "^ www \ .rackmountsolutions \ .net $" /> Add & lt; / Status & gt; & Lt; Action Type = "Redirect" url = "http://www.rackmountsolutions.net/cruxial-core-1000-series-server-rack.asp" /> & Lt; / Rules & gt; & Lt; / Rules & gt; & Lt; / Rewrite & gt; & Lt; /system.webServer> & Lt; / Configuration & gt;
Comments
Post a Comment