Jump to content

Recommended Posts

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

 

 

 

 

 

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/247964-htaccess-redirects/
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.