Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

185
Views
Redirigir la página del sitio web de dominio a subdominio

necesito tu ayuda

Moví mi sitio web del dominio

http://www.example.com a http://oldwebsite.example.com

Tengo muchos documentos pdf con enlace.

http://www.ejemplo.com/documentos/noticias/prueba.pdf

Cada vez que un usuario hace clic en el enlace anterior, me gustaría redirigir automáticamente todo el archivo PDF.

http://www.example.com/documents/news/test.pdf a http://oldwebsite.example.com/documents/news/test.pdf


http://www.example.com/documents/news/onetest.pdf a http://oldwebsite.example.com/documents/news/onetest.pdf

Estoy usando un servidor apache con PHP.

Gracias por tu ayuda

Tairón

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

Puede hacer esto redirigir el sitio web antiguo al nuevo sitio web mediante el archivo .htaccess. Debe actualizar su archivo .htaccess en la carpeta de su sitio web anterior

 <IfModule mod_rewrite.c> RewriteEngine On RewriteCond %{HTTP_HOST} ^olddomain.com$ [OR] RewriteCond %{HTTP_HOST} ^www.olddomain.com$ RewriteRule (.*)$ http://www.newdomain.com/$1 [R=301,L] </IfModule>
over 4 years ago · Santiago Trujillo Report

0

Bastante fácil, solo usa mod_rewrite . Hay miles de tutoriales en la web.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!