Divante Posted September 27, 2011 Share Posted September 27, 2011 Hi , i need help with prperly configuring my .htacces file for redirects from a domain name that was built on asp to the same domain name on a wordpress installation. Not so sure what i am doing wrong. <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule> RewriteCond %{HTTP_HOST} ^domain.com$ RewriteRule ^/?$ "http\:\/\/www\.domain\.com\/" [R=301,L] redirect 301 airplane-hangar-buildings.asp http://www.domain.com/airplane-hangar-buildings redirect 301 a-line.asp http://www.domain.com/a-line redirect 301 building-specifications.asp http://www.domain.com/building-specifications redirect 301 commercial-steel-buildings.asp http://www.domain.com/commercial-steel-buildings redirect 301 ompanyinfo.asp http://www.domain.com/companyinfo redirect 301 construction.asp http://www.domain.com/construction redirect 301 contact.asp http://www.domain.com/contact redirect 301 distributor.asp http://www.domain.com/distributors redirect 301 farm-storage-buildings.asp http://www.domain.com/farm-storage-buildings redirect 301 green.asp http://www.domain.com/green redirect 301 industrial-metal-buildings.asp http://www.domain.com/industrial-metal-buildings redirect 301 industry-partners.asp http://www.domain.com/industry-partners redirect 301 metal-truck-garage-buildings.asp www.domain.com/residential-steel-garage-buildings redirect 301 miniformasp.asp http://www.domain.com/ i am won redirect 301 models.asp http://www.domain.com/models redirect 301 news.asp http://www.domain.com/news redirect 301 p-line-metal-buildings.asp http://www.domain.com/p-line-metal-buildings redirect 301 privacy-policy.asp http://www.domain.com/privacy-policy redirect 301 qanda.asp http://www.domain.com/qanda redirect 301 q-line.asp http://www.domain.com/q-line redirect 301 quote.asp http://www.domain.com/quote redirect 301 residential-steel-garage-buildings.asp http://www.domain.com/residential-steel-garage-buildings redirect 301 sitemap.asp http://www.domain.com/sitemap redirect 301 s-line-metal-garage.asp http://www.domain.com/s-line-metal-garage redirect 301 specials.asp http://www.domain.com/specials redirect 301 testimonials.asp http://www.domain.com/testimonial redirect 301uses.asp http://www.domain.com/uses redirect 301 video.asp http://www.domain.com/video redirect 301 workshop-metal-building-kits.asp http://www.domain.com/workshop-metal-building-kits Quote Link to comment https://forums.phpfreaks.com/topic/247964-htaccess-redirects/ Share on other sites More sharing options...
requinix Posted September 27, 2011 Share Posted September 27, 2011 Not so sure what i am doing wrong. Not telling us about what issue you're trying to solve, that's what. Why do you think there's something wrong? What are you seeing that tells you there's a problem? Quote Link to comment https://forums.phpfreaks.com/topic/247964-htaccess-redirects/#findComment-1273297 Share on other sites More sharing options...
Divante Posted September 27, 2011 Author Share Posted September 27, 2011 Thanks, i have the problem solved. Quote Link to comment https://forums.phpfreaks.com/topic/247964-htaccess-redirects/#findComment-1273312 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.