Brob
Brob

Reputation: 675

Drupal 7 change URL

I've recently moved my site to a new domain name which has worked correctly but I have links within content types such as article etc which link to the old URL.

How do I change the links within the content?

Upvotes: 0

Views: 206

Answers (2)

Viswanath Polaki
Viswanath Polaki

Reputation: 1402

Use jquery to find the href attributes of links in the content and then you can change the href attributes if you find any links to old domain by some logic to match the old url.

Upvotes: 1

DhruvJoshi
DhruvJoshi

Reputation: 17146

I would say manually is the best way. However if you still own the old domain/site address,you can put up rewrite rules on your web server. In case you don't you can run a link checker like Xenu on your site.

Upvotes: 1

Related Questions